/* Atomic Locksmiths — v4 with bottom-half panorama */
:root {
  --bg: #0A0A0A;
  --fg: #F5F5F5;
  --muted: #A7A7A7;
  --border: #232323;
  --accent: #FF6A00;
  --danger: #FF2A2A;
  --radius: 16px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--fg); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }

/* Floating call button */
.floating-call { position: fixed; left: 16px; bottom: 16px; z-index: 1000; background: var(--danger); color: #fff; font-weight: 900; text-decoration: none; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--danger); box-shadow: 0 10px 30px rgba(255,42,42,0.25); font-size: clamp(14px, 2.2vw, 18px); }
.floating-call:hover { filter: brightness(1.05); }

/* Splash: two top quadrants + bottom-half panorama */
.splash { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; position: relative; }
.quad { display: grid; place-items: center; padding: 24px 16px; }
.logo-quad { grid-column: 1 / 2; grid-row: 1 / 2; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.headline-quad { grid-column: 2 / 3; grid-row: 1 / 2; border-bottom: 1px solid var(--border); }

/* Bottom half panorama spans both columns */
.pano-quad {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url('assets/dundee-panorama.jpg');
  background-size: cover;
  background-position: center;
}
.pano-quad::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35); /* dark overlay */
}

.logo-hero { width: min(58vw, 780px); height: auto; object-fit: contain; }
.headline { max-width: 640px; text-align: center; }
h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.1; margin: 0 0 10px 0; font-weight: 900; }
p { margin: 0 0 12px 0; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; justify-content: center; }
.button { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 2px solid var(--accent); color: var(--bg); background: var(--accent); font-weight: 800; text-decoration: none; font-size: 16px; }
@media (min-width: 640px) { .button { font-size: 18px; } }
.button:hover { filter: brightness(1.05); }
.button.button-accent { background: var(--accent); border-color: var(--accent); color: #0A0A0A; }

.scroll-cue { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); text-decoration: none; }
.scroll-cue .arrow { width: 18px; height: 18px; border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(45deg); animation: bob 1.8s ease-in-out infinite; display: block; opacity: .8; }
@keyframes bob { 0%,100% { transform: translate(-2px, 0) rotate(45deg); opacity: .5; } 50% { transform: translate(-2px, 6px) rotate(45deg); opacity: 1; } }

.section { padding: 72px 16px; text-align: center; }
h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; margin: 0 0 24px 0; font-weight: 800; }

.grid { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr; }
.grid.three { grid-template-columns: 1fr; }
@media (min-width: 880px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } }

.card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #0F0F0F; }

.mockups .mockup { display: grid; gap: 8px; justify-items: center; }
.mockups img { width: 100%; height: auto; max-width: 420px; }
.mockups figcaption { color: var(--muted); font-size: 14px; }

.process { max-width: 900px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 12px; text-align: center; }
.process li { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #0F0F0F; }
.process li strong { display: block; margin-bottom: 4px; }

.contact-form { max-width: 700px; margin: 0 auto; display: grid; gap: 12px; text-align: left; }
.contact-form .row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
label span { display: block; font-weight: 700; margin-bottom: 6px; }
input, textarea { width: 100%; padding: 12px 14px; border: 1px solid #2c2c2c; border-radius: 12px; background: #111; color: var(--fg); font: inherit; }
input:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(255,106,0,.25); }

.alt-text { color: var(--muted); text-align: center; }
.site-footer { border-top: 1px solid var(--border); padding: 36px 16px 48px; text-align: center; color: var(--muted); }


/* Project pages */
.project-header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border); }
.logo-small { height: clamp(24px, 4vw, 40px); width:auto; object-fit: contain; }
.back-link { display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:var(--fg); font-weight:700; }
.back-link:hover .back-text { text-decoration: underline; }
.back-icon { width:10px; height:10px; border-left:2px solid var(--fg); border-bottom:2px solid var(--fg); transform: rotate(45deg); margin-top:2px; }
.project-main { max-width:960px; margin:32px auto 80px; padding:0 16px; text-align:center; }
.project-main .lead { color:var(--muted); }
.project-media { margin:24px auto; max-width:720px; }
.project-media img { width:100%; height:auto; }
.project-details { text-align:left; max-width:760px; margin:24px auto; }
.project-details h2 { margin-top:24px; }
.project-details ul { padding-left:20px; }


/* Full-width heading over panorama */
.pano-quad { position: relative; }
.pano-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-weight: 900;
  color: #fff;
  font-size: clamp(18px, 2.8vw, 34px);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* Circular floating call button at the top-left */
.floating-call.circle {
  top: 16px;
  bottom: auto;
  left: 16px;
  right: auto;
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  border-radius: 9999px;
  padding: 0;
  display: grid;
  place-items: center;
  border-width: 0;
  background: var(--danger);
  box-shadow: 0 10px 30px rgba(255,42,42,0.25);
}
.floating-call.circle .phone-icon {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1;
}


/* Ensure panorama headline is above the overlay and bright */
.pano-quad { position: relative; }
.pano-quad::after { z-index: 0; }
.pano-text {
  position: absolute;
  z-index: 1; /* above overlay */
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  color: #FFFFFF;
  font-weight: 900;
  font-size: clamp(20px, 3.2vw, 42px);
  text-shadow: 0 3px 16px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.5);
}

/* Larger circular floating call button with two-line text */
.floating-call.circle {
  top: 16px;
  bottom: auto;
  left: 16px;
  right: auto;
  width: clamp(84px, 11vw, 120px);
  height: clamp(84px, 11vw, 120px);
  border-radius: 9999px;
  padding: 8px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  background: var(--danger);
  box-shadow: 0 12px 36px rgba(255,42,42,0.35);
  text-decoration: none;
  color: #fff;
  text-align: center;
}
.floating-call.circle .call-topline {
  font-size: clamp(10px, 1.8vw, 14px);
  font-weight: 800;
  line-height: 1.05;
}
.floating-call.circle .call-bottomline {
  font-size: clamp(12px, 2.2vw, 18px);
  font-weight: 900;
  line-height: 1.05;
}


/* Mobile layout: stack logo, headline, and panorama vertically */
@media (max-width: 768px) {
  .splash {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .logo-quad,
  .headline-quad,
  .pano-quad {
    grid-column: 1;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .pano-quad { border-bottom: none; }
}


/* === Mobile layout tweaks (stacked splash) === */
@media (max-width: 640px) {
  /* Switch splash to one column, three rows: Logo -> Headline -> Panorama */
  .splash {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 45vh;
  }
  .logo-quad, .headline-quad, .pano-quad {
    grid-column: 1 / 2;
  }
  .logo-quad {
    grid-row: 1 / 2;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .headline-quad {
    grid-row: 2 / 3;
    border-bottom: 1px solid var(--border);
  }
  .pano-quad {
    grid-row: 3 / 4;
    min-height: 45vh; /* ensure visible height on small screens */
  }
  .logo-hero { width: min(80vw, 520px); }
}


/* Larger circular floating call button with three-line text */
.floating-call.circle {
  top: 16px; left: 16px; right: auto; bottom: auto;
  width: clamp(96px, 14vw, 132px);
  height: clamp(96px, 14vw, 132px);
  border-radius: 9999px;
  padding: 8px; display: grid; place-items: center; gap: 2px;
  border: 0; background: var(--danger); color: #fff; text-decoration: none; text-align: center;
  box-shadow: 0 12px 36px rgba(255,42,42,0.35);
}
.floating-call.circle .call-topline { font-weight: 800; font-size: clamp(10px, 1.8vw, 14px); line-height: 1.05; }
.floating-call.circle .call-midline { font-weight: 800; font-size: clamp(9px, 1.6vw, 13px); line-height: 1.05; }
.floating-call.circle .call-bottomline { font-weight: 900; font-size: clamp(12px, 2.2vw, 18px); line-height: 1.05; }
@media (max-width: 360px) {
  .floating-call.circle { width: 96px; height: 96px; padding: 6px; }
  .floating-call.circle .call-topline { font-size: 10px; }
  .floating-call.circle .call-midline { font-size: 9px; }
  .floating-call.circle .call-bottomline { font-size: 12px; }
}
