/* Upgrade My House Renovations — landing page */

:root {
  --navy: #0d2a5c;
  --navy-deep: #081c3e;
  --navy-mid: #163a75;
  --gold: #c9a227;
  --gold-dark: #a8871b;
  --gold-light: #f2d27a;
  --gold-grad: linear-gradient(135deg, #c9a227 0%, #e0bc4d 45%, #f2d27a 100%);
  --grey: #5c6370;
  --grey-line: #d8dbe2;
  --grey-bg: #f4f5f8;
  --ink: #1c2330;
  --white: #ffffff;
  --error: #8b1e1e;
  --header-h: 4.75rem;
  --radius: 0.75rem;
  --shadow: 0 12px 40px rgba(8, 28, 62, 0.1);
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --focus: 0 0 0 3px rgba(201, 162, 39, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-dark);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.15rem); margin: 0 0 0.6em; }
h2 { font-size: clamp(2rem, 3.2vw, 2.85rem); margin: 0 0 0.4em; }
h3 { font-size: 1.35rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { color: inherit; transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }

.btn-gold {
  background: var(--gold-grad);
  color: var(--navy-deep);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.28);
}

.btn-gold:hover { color: var(--navy-deep); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-line);
}

.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn-lg { padding: 0.95rem 1.5rem; font-size: 1rem; }

.btn-submit {
  width: 100%;
  margin-top: 0.4rem;
  border: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-line);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo img {
  height: 3.15rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav ul {
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--gold-dark); }

.header-actions { display: flex; gap: 0.55rem; }

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--grey-line);
  border-radius: 0.5rem;
  background: var(--white);
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
  border-radius: 1px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: min(86vh, 44rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 28, 62, 0.25) 0%, rgba(8, 28, 62, 0.55) 45%, rgba(8, 28, 62, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 28, 62, 0.45), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4.25rem;
  max-width: 42rem;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2));
  margin-right: auto;
  width: min(42rem, calc(100% - 2.5rem));
}

.hero h1 { color: var(--white); }

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero .eyebrow { color: var(--gold-light); }

.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Sections */

.section { padding: 5.25rem 0; }

.section-head {
  max-width: 38rem;
  margin-bottom: 2.75rem;
}

.section-head p { color: var(--grey); }

.section-head .eyebrow { color: var(--gold-dark); }

/* Services */

.services { background: var(--grey-bg); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.3rem;
  box-shadow: 0 1px 0 rgba(13, 42, 92, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #e4d19a;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 1rem;
  border-radius: 0.7rem;
  background: rgba(13, 42, 92, 0.05);
  color: var(--navy);
}

.service-icon svg { width: 2rem; height: 2rem; }

.service-card p {
  color: var(--grey);
  font-size: 0.98rem;
  margin: 0;
}

/* Gallery */

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

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy-deep);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.gallery-label {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  background: rgba(8, 28, 62, 0.86);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 210, 122, 0.45);
}

/* Why us */

.why-us { background: var(--navy); color: var(--white); }

.why-us h2,
.why-us h3 { color: var(--white); }

.why-us .section-head p { color: rgba(255, 255, 255, 0.78); }

.why-us .eyebrow { color: var(--gold-light); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-grid li {
  padding-top: 1.1rem;
  border-top: 2px solid transparent;
  border-image: var(--gold-grad) 1;
}

.why-grid p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  font-size: 0.98rem;
}

/* Enquire */

.enquire { background: var(--grey-bg); }

.enquire-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.enquire-intro p { color: var(--grey); }

.contact-list {
  margin: 1.75rem 0 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.contact-list a {
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--navy);
}

.contact-list a:hover { color: var(--gold-dark); }

.enquire-note {
  font-size: 0.95rem;
  padding: 0.9rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 0 0.5rem 0.5rem 0;
}

.enquire-form {
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 1rem;
  padding: 1.75rem 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field { margin-bottom: 1rem; }

.field label,
.field legend {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.field-choice { border: 0; padding: 0; margin: 0 0 1rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea { resize: vertical; min-height: 7rem; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--focus);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.choice input { width: auto; accent-color: var(--navy); }

.form-success {
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  background: #f3f7ef;
  border: 1px solid #c5d6b6;
  border-radius: 0.7rem;
  color: #1d3b1f;
}

.form-success h3 { color: #1d3b1f; font-size: 1.3rem; }

.enquire-form.is-sent .btn-submit,
.enquire-form.is-sent .field,
.enquire-form.is-sent .form-row,
.enquire-form.is-sent fieldset {
  display: none;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3.25rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  display: inline-block;
  background: var(--white);
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  max-width: 20rem;
}

.footer-logo img { width: 100%; height: auto; }

.site-footer h2 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.7rem;
}

.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer p { margin: 0 0 0.4rem; }

.footer-meta {
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

.credits { margin-top: 0.75rem; line-height: 1.7; }
.credits a { color: rgba(242, 210, 122, 0.95); text-decoration: underline; }

/* Lightbox */

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 62, 0.88);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-height: calc(100vh - 8rem);
  width: auto;
  border-radius: 0.6rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-figure figcaption {
  color: var(--white);
  margin-top: 0.8rem;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible { outline: none; box-shadow: var(--focus); }

body.lightbox-open { overflow: hidden; }

/* Responsive */

@media (max-width: 960px) {
  .service-grid,
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .enquire-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; max-width: 16rem; }
}

@media (max-width: 800px) {
  .nav-toggle { display: grid; place-items: center; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.75rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--grey-line);
  }

  .header-actions { justify-content: flex-start; flex-wrap: wrap; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(1120px, calc(100% - 1.5rem)); }
  .hero { min-height: 32rem; }
  .hero-content { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .service-grid,
  .why-grid,
  .gallery-grid,
  .form-row,
  .footer-inner { grid-template-columns: 1fr; }
  .logo img { height: 2.55rem; }
  .header-actions .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .service-card,
  .gallery-item img { transition: none; }
}

/* Enhancements for the live one-page site */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy);
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}

.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.enquire-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.btn-mailto {
  width: 100%;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--grey-line);
}

.btn-mailto:hover { border-color: var(--navy); color: var(--navy); }

.form-status {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--grey);
}

.form-status[data-kind="error"] { color: var(--error); }
.form-status[data-kind="success"] { color: #1c6b3a; }

.enquire-form.is-sending .btn-submit { opacity: 0.7; pointer-events: none; }

.contact-address {
  white-space: pre-line;
}

.mobile-cta {
  display: none;
}

.gallery-empty {
  color: var(--grey);
  background: var(--grey-bg);
  border: 1px dashed var(--grey-line);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
}

@media (max-width: 800px) {
  .mobile-cta {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 40;
    gap: 0.6rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--grey-line);
    box-shadow: 0 -8px 24px rgba(8, 28, 62, 0.08);
  }

  .mobile-cta .btn { flex: 1; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(2.1rem, 10vw, 2.7rem); }
  .hero { min-height: 28rem; }
  .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}
