/* ── Local fonts ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/rajdhani/rajdhani-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/rajdhani/rajdhani-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter variable — one file serves 400–900 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ────────────────────────────────────────────────────────── */

:root {
  --palette-black:    #000000;
  --palette-charcoal: #151515;
  --palette-gold:     #f2c300;
  --palette-mist:     #e7e5df;
  --palette-off-white:#faf9f5;
  --palette-white:    #ffffff;

  --brand-black:      var(--palette-black);
  --brand-charcoal:   var(--palette-charcoal);
  --brand-graphite:   var(--palette-charcoal);
  --brand-gold:       var(--palette-gold);
  --brand-gold-hover: var(--palette-gold);
  --brand-gold-soft:  var(--palette-mist);
  --brand-gold-muted: var(--palette-gold);
  --brand-mist:       var(--palette-mist);
  --brand-cloud:      var(--palette-off-white);
  --brand-off-white:  var(--palette-off-white);
  --brand-white:      var(--palette-white);

  --text-main:        var(--palette-charcoal);
  --text-muted:       var(--palette-charcoal);
  --background-main:  var(--palette-white);
  --background-soft:  var(--palette-off-white);
  --background-dark:  var(--palette-charcoal);
  --border-light:     var(--palette-mist);

  --font-heading: 'Rajdhani', 'Arial Black', Arial, sans-serif;
  --font-body:    'Inter', Arial, Helvetica, sans-serif;
  --font-ui:      Arial, Helvetica, sans-serif;

  --radius-sm:   6px;
  --radius-card: 10px;
}

/* ── Base reset ───────────────────────────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

/* ── Skip link ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 10px 20px;
  background: var(--palette-gold);
  color: var(--palette-black);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 10000;
  transition: top 150ms ease;
}
.skip-link:focus { top: 0; }

/* ── Focus styles ────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--palette-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

html {
  color-scheme: light;
  accent-color: var(--palette-gold);
}

::selection {
  background: var(--palette-gold);
  color: var(--palette-black);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--text-main);
  background: var(--background-main);
  line-height: 1.7;
}

a { color: inherit; }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, var(--palette-off-white), transparent 35%),
    var(--brand-off-white);
}

.container {
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
}

/* ── Topbar / nav ─────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  background: var(--palette-white);
  color: var(--brand-charcoal);
  border-bottom: 6px solid var(--brand-gold);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.35rem;
  text-decoration: none;
}

.logo-img {
  display: block;
  width: auto;
  height: 64px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-charcoal);
}

.nav-links a {
  text-decoration: none;
  text-shadow: none;
  transition: color 200ms ease, text-shadow 400ms ease;
}
.nav-links a:hover { color: var(--brand-gold); }

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    text-shadow:
      0 2px 6px rgba(0,0,0,0.95),
      0 4px 14px rgba(0,0,0,0.75),
      0 0 24px rgba(0,0,0,0.5);
    transition: color 200ms ease, text-shadow 150ms ease;
  }
}

/* ── Spark particles ─────────────────────────────────────────────────────── */
@keyframes nav-spark-fly {
  from { transform: translate(0, 0); opacity: 1; }
  to   { transform: translate(var(--spark-x), var(--spark-y)); opacity: 0; }
}
.nav-spark {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--palette-gold);
  color: var(--palette-black);
  font-family: var(--font-heading);
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 2px solid var(--palette-gold);
  white-space: nowrap;
}

.phone-link:hover {
  background: var(--palette-white);
  border-color: var(--palette-white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--palette-mist);
  border-radius: var(--radius-sm);
  background: var(--palette-charcoal);
  color: var(--palette-white);
  font-size: 1.1rem;
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: var(--palette-gold);
  color: var(--palette-black);
  border-color: var(--palette-gold);
  outline: none;
}

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 20px;
  font-size: clamp(2.25rem, 4.8vw, 4.1rem);
  text-transform: uppercase;
  max-width: 840px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.45rem;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-gold);
  color: var(--brand-black);
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--brand-gold);
  color: var(--brand-black);
  border-color: var(--brand-gold);
}

.btn-primary:hover {
  background: var(--palette-white);
  border-color: var(--palette-white);
}

.btn-secondary {
  background: transparent;
  color: var(--brand-white);
  border-color: var(--brand-white);
}

.btn-secondary:hover {
  color: var(--brand-black);
  background: var(--brand-white);
}

.btn-charcoal {
  background: var(--palette-charcoal);
  color: var(--palette-white);
  border-color: var(--palette-white);
}

.btn-charcoal:hover {
  background: var(--palette-black);
  border-color: var(--palette-black);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

section { padding: 64px 0; }

.section-white   { background: var(--brand-white); }
.section-soft    { background: var(--background-soft); }
.section-mist    { background: var(--brand-mist); }

.trust-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(21, 21, 21, 0.72);
  border-top: 3px solid var(--brand-gold);
  padding: 13px 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--palette-mist);
}

.trust-dot {
  color: var(--brand-gold);
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 820px) {
  .trust-strip { display: none; }
}

.section-charcoal {
  background: linear-gradient(135deg, var(--brand-charcoal), var(--brand-graphite));
  color: var(--brand-white);
}

.section-charcoal .section-heading p,
.section-charcoal .card p { color: var(--palette-mist); }

.section-charcoal .card {
  background: var(--palette-charcoal);
  border-color: var(--palette-mist);
  box-shadow: none;
}

.section-charcoal .project-slider {
  background: var(--palette-charcoal);
  border-color: var(--palette-mist);
  box-shadow: none;
}

.section-gold {
  background:
    linear-gradient(135deg, var(--palette-off-white), transparent 42%),
    var(--brand-cloud);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 0;
  color: var(--text-muted);
}

/* ── Grid / Cards ─────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-top: 6px solid var(--brand-gold);
  border-radius: var(--radius-card);
  padding: 24px;
}

.card p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@keyframes spin-once {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--palette-gold);
  color: var(--palette-black);
  font-size: 1.25rem;
}

.service-card:hover .service-icon {
  animation: spin-once 0.6s ease-in-out;
}

.service-card h3 { margin-bottom: 10px; }
.service-card p  { margin-top: 0; }

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--palette-charcoal);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.82) 0 35%, transparent 85%),
    linear-gradient(0deg, var(--palette-black), transparent),
    url('/img/bg.jpg') center center / cover no-repeat;
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
  padding-inline: clamp(24px, 3.5vw, 56px);
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--palette-mist);
  font-size: 1.14rem;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
  max-width: 860px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--palette-mist);
  color: var(--palette-mist);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.84rem;
}

.hero-contact-card {
  background: var(--palette-off-white);
  color: var(--palette-charcoal);
  border: 1px solid var(--palette-mist);
  border-top: 8px solid var(--palette-gold);
  border-radius: var(--radius-card);
  padding: clamp(22px, 4vw, 34px);
}

.hero-contact-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  color: var(--palette-charcoal);
}

.hero-contact-card p {
  margin: 14px 0 0;
  color: var(--palette-charcoal);
}

.hero-contact-card .hero-card-subheading {
  color: var(--palette-charcoal);
  font-weight: 800;
}

.hero-card-pills { margin-top: 24px; }

.hero-card-pills .hero-chip {
  border-color: var(--palette-charcoal);
  color: var(--palette-charcoal);
  background: var(--palette-white);
}

.hero-card-pills .hero-chip i { color: var(--palette-gold); }

.hero-phone-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 26px;
  padding: 0 18px;
  background: var(--palette-gold);
  color: var(--palette-black);
  border: 2px solid var(--palette-gold);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}

.hero-phone-large:hover {
  background: var(--palette-white);
  border-color: var(--palette-charcoal);
}

/* ── Instagram slider ─────────────────────────────────────────────────────── */

.project-slider {
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 22px;
  overflow: hidden;
}

.instagram-card {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border-bottom: 4px solid var(--palette-gold);
  border-radius: var(--radius-card);
  background: var(--palette-black);
}

.instagram-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 200ms ease;
}

.instagram-card:hover img { transform: scale(1.04); }

.instagram-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--palette-white);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Splide overrides ─────────────────────────────────────────────────────── */

.splide__slide { height: auto; }

.splide__pagination__page.is-active {
  background: var(--brand-gold);
  transform: scale(1.2);
}

.splide__arrow {
  background: var(--brand-gold);
  opacity: 1;
}

.splide__arrow svg { fill: var(--brand-black); }

/* ── Testimonials ─────────────────────────────────────────────────────────── */

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(32px, 5vw, 52px) clamp(28px, 5vw, 52px);
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-top: 6px solid var(--brand-gold);
  border-radius: var(--radius-card);
}

.testimonial-stars {
  display: flex;
  gap: 6px;
  color: var(--palette-gold);
  font-size: 1.1rem;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.75;
  color: var(--text-muted);
  font-style: italic;
  flex-grow: 1;
}

.testimonial-card cite {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--palette-charcoal);
  font-style: normal;
}

.testimonial-card cite span {
  color: var(--brand-gold);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ── CTA panel ────────────────────────────────────────────────────────────── */

.panel {
  background: linear-gradient(135deg, var(--brand-charcoal), var(--brand-graphite));
  color: var(--brand-white);
  padding: 40px;
  border-top: 6px solid var(--brand-gold);
  border-radius: var(--radius-card);
}

.panel p {
  color: var(--palette-mist);
  max-width: 680px;
}

/* ── Contact background slider ────────────────────────────────────────────── */

#contact {
  position: relative;
  overflow: hidden;
  background: var(--palette-black);
}

#contact > .container {
  position: relative;
  z-index: 2;
}

.contact-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg-slider::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.contact-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* 5 images × 12s (2s fade-in + 6s hold + 2s fade-out + 2s black) = 60s cycle */
@keyframes contact-bg-fade {
  0%      { opacity: 0; }
  3.333%  { opacity: 1; }
  13.333% { opacity: 1; }
  16.667% { opacity: 0; }
  100%    { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .contact-bg-img { animation: contact-bg-fade 60s infinite; }
  .contact-bg-img:nth-child(1) { animation-delay:  0s; }
  .contact-bg-img:nth-child(2) { animation-delay: 12s; }
  .contact-bg-img:nth-child(3) { animation-delay: 24s; }
  .contact-bg-img:nth-child(4) { animation-delay: 36s; }
  .contact-bg-img:nth-child(5) { animation-delay: 48s; }
}

/* Text colours for contact section on dark overlay */
#contact .section-heading h2,
#contact .section-heading p,
#contact label { color: var(--palette-white); }

#contact .section-heading p { opacity: 0.8; }

#contact .section-heading { margin-bottom: 16px; }

/* ── Contact form ─────────────────────────────────────────────────────────── */

#contact { padding: 48px 0; }

.contact-form { max-width: 900px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 800;
  margin-bottom: 5px;
}

.req { color: var(--palette-gold); font-weight: 900; }

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--brand-graphite);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font: inherit;
  color: var(--palette-charcoal);
  background: var(--brand-white);
}

input:focus,
select:focus,
textarea:focus {
  outline: 4px solid var(--brand-gold-soft);
  border-color: var(--brand-black);
}

textarea,
.full {
  grid-column: 1 / -1;
}

/* Honeypot — visually hidden, not removed from DOM */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-error {
  margin: 0;
  color: #c62828;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ── Custom select ────────────────────────────────────────────────────────── */

.custom-select {
  position: relative;
  width: 100%;
  font: inherit;
}

.custom-select-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid var(--brand-graphite);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--palette-charcoal);
  background: var(--palette-white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.custom-select-button::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--palette-charcoal);
  border-bottom: 2px solid var(--palette-charcoal);
  transform: rotate(45deg) translateY(-2px);
  flex: 0 0 auto;
}

.custom-select.open .custom-select-button::after {
  transform: rotate(225deg) translateY(-2px);
}

.custom-select-button:focus {
  outline: 4px solid var(--brand-gold-soft);
  border-color: var(--brand-black);
}

.custom-select-options {
  position: absolute;
  z-index: 200;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  display: none;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--palette-white);
  border: 2px solid var(--palette-charcoal);
  border-radius: var(--radius-sm);
}

.custom-select.open .custom-select-options { display: block; }

.custom-select-option {
  padding: 7px 10px;
  color: var(--palette-charcoal);
  background: var(--palette-white);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.custom-select-option:hover,
.custom-select-option.active,
.custom-select-option[aria-selected='true'] {
  color: var(--palette-black);
  background: var(--palette-gold);
}

/* ── Scroll fade-up ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Thank-you modal ──────────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-box {
  position: relative;
  background: var(--palette-white);
  padding: clamp(28px, 5vw, 48px);
  max-width: 480px;
  width: calc(100% - 48px);
  text-align: center;
  border-top: 8px solid var(--palette-gold);
  border-radius: var(--radius-sm);
}

.modal-box h2 {
  margin-top: 16px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.modal-box p {
  margin: 12px 0 24px;
  color: var(--text-muted);
}

.modal-icon {
  font-size: 3rem;
  color: var(--palette-gold);
  line-height: 1;
}

/* ── Links grid ───────────────────────────────────────────────────────────── */

.links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-tile {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 130px;
  height: 130px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #ffffff;
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--palette-mist);
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease, color 200ms ease;
}

/* Shimmer sweep */
.link-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.12) 50%, transparent 75%);
  transform: translateX(-130%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .link-tile:hover::after {
    transition: transform 0.5s ease;
    transform: translateX(130%);
  }
}

.link-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand-gold);
  color: var(--palette-white);
  box-shadow: 0 0 0 1px var(--brand-gold), 0 6px 20px rgba(242, 195, 0, 0.18);
}

/* Favicon icon inside tile */
.link-tile .tile-favicon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Logo image inside tile — zero-padding, fills the full box */
.link-tile-logo {
  padding: 0;
}

.link-tile-logo .tile-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--radius-card) - 1px);
}

/* White-card logo tiles (dark logos like autocable) */
.link-tile-light {
  background: var(--palette-white);
  border-color: transparent;
  color: var(--palette-charcoal);
}

.link-tile-light:hover {
  background: var(--palette-off-white);
  color: var(--palette-charcoal);
  box-shadow: 0 0 0 1px var(--brand-gold), 0 6px 20px rgba(242, 195, 0, 0.2);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--brand-charcoal);
  color: var(--brand-white);
  padding: 30px 0;
  border-top: 6px solid var(--brand-gold);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-credit { color: var(--palette-mist); }

.site-credit a {
  color: var(--brand-gold);
  font-weight: 800;
  text-decoration: none;
}

.site-credit a:hover { text-decoration: underline; }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--palette-gold);
  font-weight: 900;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer-nav a {
  color: var(--palette-mist);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-nav a:hover { color: var(--palette-gold); }

/* ── Back to top ─────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--palette-gold);
  color: var(--palette-black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}
.back-to-top:not([hidden]) { display: flex; }
.back-to-top.visible { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); }

@media (max-width: 820px) {
  .back-to-top {
    bottom: calc(56px + env(safe-area-inset-bottom, 0px) + 12px);
  }
}

.footer-social:hover { text-decoration: underline; }

/* ── Mobile sticky call bar ───────────────────────────────────────────────── */

.mobile-call-bar {
  display: none;
}

@media (max-width: 820px) {
  .mobile-call-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--palette-charcoal);
    border-top: 4px solid var(--brand-gold);
    padding: env(safe-area-inset-bottom, 0px) 0 0;
  }

  .mobile-call-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    color: var(--palette-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mobile-call-link i {
    font-size: 1.1rem;
    color: var(--brand-gold);
  }

  .mobile-call-link:active {
    background: var(--brand-gold);
    color: var(--palette-black);
  }

  .mobile-call-link:active i {
    color: var(--palette-black);
  }

  /* Keep footer above the call bar */
  .footer {
    padding-bottom: calc(30px + 60px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(2, 1fr); }

  .hero-layout {
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 32px));
    padding-inline: 0;
  }

  .hero-contact-card { max-width: 620px; }
}

@media (max-width: 820px) {
  .container { width: min(100%, calc(100% - 32px)); }

  .nav-actions {
    flex-wrap: nowrap;
  }

  .menu-toggle { display: inline-flex; }

  /* Dropdown overlays content — does not push nav taller */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    gap: 0;
    background: var(--palette-charcoal);
    border-bottom: 4px solid var(--palette-gold);
    padding: 4px min(28px, 4vw) 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid rgba(231, 229, 223, 0.18);
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--palette-white);
  }

  .nav-links a:last-child { border-bottom: none; }

  .hero {
    min-height: calc(100dvh - 74px);
    padding: 24px 0;
    align-items: center;
    background:
      linear-gradient(90deg, rgba(0,0,0,0.82) 0 35%, transparent 85%),
      linear-gradient(0deg, var(--palette-black), transparent),
      url('/img/bg.jpg') center center / cover no-repeat;
  }

  .hero-content { max-width: 100%; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-contact-card {
    margin-top: 0;
    background: none;
    border: none;
    padding: 0;
  }
  .hero-contact-card > h2,
  .hero-card-subheading,
  .hero-phone-large { display: none; }
  .hero-card-pills {
    display: flex;
    margin-top: 0;
  }
  .hero-card-pills .hero-chip {
    border-color: var(--palette-mist);
    color: var(--palette-mist);
    background: transparent;
  }

  /* Smooth hero → services transition */
  #services {
    position: relative;
    z-index: 1;
    margin-top: -36px;
    padding-top: calc(64px + 36px);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.22);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar .nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
  }

  .topbar .logo-img { height: 72px; max-width: 240px; }

  .topbar .nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .topbar .phone-link { display: none; }
  .topbar .menu-toggle { flex: 0 0 40px; width: 40px; height: 40px; }

  #contact { padding: 32px 0; }
  #contact .section-heading { margin-bottom: 10px; }

  .form-grid { gap: 8px; }

  label { margin-bottom: 3px; font-size: 0.85rem; }

  input,
  select,
  textarea { padding: 6px 10px; font-size: 0.9rem; }

  .custom-select-button { padding: 6px 10px; font-size: 0.9rem; }
  .custom-select-option  { padding: 5px 8px;  font-size: 0.9rem; }
}

@media (max-width: 520px) {
  .container,
  .hero-layout { width: min(100%, calc(100% - 24px)); }

  .logo-img { height: 66px; }

  h1 { font-size: clamp(2rem, 10vw, 3rem); }

  .button-row,
  .btn,
  .hero-phone-large { width: 100%; }

  .hero-content p  { display: none; }
  .hero-chip { font-size: 0.8rem; }

  /* Links section — 3 tiles per row on mobile */
  .links-grid {
    gap: 8px;
  }

  .link-tile {
    width: calc((100% - 16px) / 3);
    height: auto;
    aspect-ratio: 1;
    font-size: 0.68rem;
  }
}

@media (max-width: 420px) {
  .topbar .logo-img { height: 62px; max-width: 195px; }

  .topbar .phone-link span { display: none; }

  .topbar .phone-link {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .topbar .phone-link i { margin: 0; }
}
