/* =============================================================================
   styles.css
   Mobile-first: the base rules are for phones. The @media (min-width: ...)
   blocks below each section add the tablet (700px+) and desktop (1024px+)
   layouts. Colours, fonts and spacing are set once in :root.
   ============================================================================= */


/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS (change colours and spacing here)
   ----------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy: #0b1b2b;          /* hero, dark sections, footer */
  --charcoal: #141c24;      /* surfaces on dark backgrounds */
  --ivory: #f7f4ee;         /* main light background */
  --sand: #e8dfd0;          /* borders, secondary surfaces */
  --gold: #c8a96a;          /* primary accent */
  --emerald: #1f6f5c;       /* rare second accent (checkmarks) */
  --ink: #1a2430;           /* text on light */
  --ink-muted: #5b6673;
  --on-dark: #f7f4ee;       /* text on dark */
  --on-dark-muted: #a9b3bf;

  /* Tints made from the palette */
  --paper: #fdfbf7;         /* card surface */
  --sand-soft: #f0eadf;     /* alternate section background */
  --gold-deep: #7a6232;     /* gold for small text on light backgrounds (readable) */
  --gold-light: #d8c08c;    /* primary button hover */
  --line: #e8dfd0;          /* hairlines on light */
  --line-strong: #d6c8b0;
  --line-dark: rgba(247, 244, 238, 0.14);
  --error: #a3392b;

  /* Fonts: one web font for headings, the device's own sans-serif for text */
  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1100px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 11vw, 136px);
  --header-h: 68px;
  --panel-pad: clamp(20px, 4vw, 40px);
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Effects */
  --shadow: 0 1px 2px rgba(11, 27, 43, 0.04), 0 24px 48px -32px rgba(11, 27, 43, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* A local font scaled to the same width as Cormorant Garamond, so headings
   don't jump when the web font finishes loading (measured per weight). */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif");
  font-weight: 400 500;
  size-adjust: 96.5%;
}

@font-face {
  font-family: "Cormorant Fallback";
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Liberation Serif Bold");
  font-weight: 600 700;
  size-adjust: 91.5%;
}


/* -----------------------------------------------------------------------------
   2. BASE
   ----------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* anchors land just below the sticky bar */
  background: var(--navy); /* colour seen when a phone "bounces" past the top or bottom */
}

html.menu-locked {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
  body {
    font-size: 1.125rem;
  }
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, ul, ol, figure, blockquote {
  margin: 0;
}

p {
  text-wrap: pretty; /* avoids a lonely last word on a line */
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(200, 169, 106, 0.35);
}

/* Keyboard focus is always visible: dark ring on light areas, gold on dark */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-header :focus-visible,
.mobile-menu :focus-visible,
.hero :focus-visible,
.section-navy :focus-visible,
.custom-cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}


/* -----------------------------------------------------------------------------
   3. SMALL HELPERS
   ----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Visible to screen readers only */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Shown only if content.js has a typo */
.content-error {
  position: fixed;
  z-index: 200;
  right: 16px;
  bottom: 16px;
  left: 16px;
  margin: 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--error);
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}


/* -----------------------------------------------------------------------------
   4. BUTTONS
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 12px 24px -16px rgba(11, 27, 43, 0.55);
}

.btn-outline {
  border-color: rgba(26, 36, 48, 0.3);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-outline-light {
  border-color: rgba(247, 244, 238, 0.35);
  color: var(--on-dark);
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-small {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* The small "lift" only on devices with a mouse (avoids sticky hover on phones) */
@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .btn:active,
  .btn:disabled {
    transform: none;
  }
}


/* -----------------------------------------------------------------------------
   5. TOP BAR AND MENUS
   ----------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  color: var(--on-dark);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Solid bar once the page scrolls (added by script.js) */
.site-header.is-scrolled {
  background: rgba(11, 27, 43, 0.92);
  border-bottom-color: var(--line-dark);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.site-header.is-open {
  background: var(--navy);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.brand {
  margin-right: auto;
  padding-block: 8px;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1rem + 1.6vw, 1.75rem);
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-desktop {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-btn {
  min-width: 40px;
  height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.2s;
}

.lang-btn:hover {
  color: var(--on-dark);
}

.lang-btn[aria-pressed="true"] {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.lang-divider {
  width: 1px;
  height: 14px;
  background: var(--line-dark);
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--on-dark-muted);
  transition: color 0.2s;
}

.icon-link:hover {
  color: var(--gold);
}

.header-cta {
  display: none;
}

/* Very narrow phones: make room for the name (WhatsApp is in the menu and hero) */
@media (max-width: 359px) {
  .header-actions .icon-link {
    display: none;
  }
}

/* Hamburger: two thin lines that turn into an X */
.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--on-dark);
  cursor: pointer;
}

.menu-toggle-lines {
  position: relative;
  width: 22px;
  height: 10px;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle-lines::before {
  top: 0;
}

.menu-toggle-lines::after {
  top: 8.5px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 4.25px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 4.25px;
  transform: rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  z-index: 49;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--navy);
  color: var(--on-dark);
  animation: menu-in 0.35s var(--ease);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-links a {
  display: flex;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }

  .nav-links {
    display: flex;
    gap: 2px;
  }

  .nav-links a {
    position: relative;
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--on-dark-muted);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s;
  }

  .nav-links a:hover,
  .nav-links a.is-active {
    color: var(--on-dark);
  }

  /* Gold underline on the section you're looking at */
  .nav-links a.is-active::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 1px;
    background: var(--gold);
  }

  .header-actions {
    gap: 8px;
    margin-left: 12px;
  }

  .header-cta {
    display: inline-flex;
    margin-left: 4px;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}


/* -----------------------------------------------------------------------------
   6. HERO
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(28px, 6vh, 104px));
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
}

/* Soft glow: warm light top right, a hint of emerald bottom left */
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(55% 60% at 88% 8%, rgba(200, 169, 106, 0.14), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(31, 111, 92, 0.24), transparent 70%);
}

/* Fine film grain */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  max-width: 12em;
  font-size: clamp(2.75rem, 1.6rem + 5.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.hero-lead {
  max-width: 31em;
  margin-top: 24px;
  color: var(--on-dark-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-actions .btn {
  flex: 1 1 auto;
}

.hero-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-avatar {
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(200, 169, 106, 0.6);
  border-radius: 50%;
  background: var(--sand);
  object-fit: cover;
  object-position: 50% 30%; /* keeps the face in the circle */
}

.hero-based {
  color: var(--on-dark);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-contact-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.hero-contact-links a {
  display: inline-block;
  padding-block: 6px;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-contact-links a:hover {
  color: var(--gold);
}

/* Latest project picture: hidden on phones and tablets, shown beside the
   text on computers (see the 1024px block below) */
.hero-work {
  display: none;
}

/* Horizon line with Mount Teide drawn on it */
.hero-horizon {
  position: relative;
  margin-top: clamp(72px, 12vh, 128px);
  border-top: 1px solid var(--line-dark);
}

.teide {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.teide path {
  fill: none;
  stroke: var(--gold);
  stroke-opacity: 0.6;
  stroke-width: 3.2; /* about 1px on phones; thinner values below for wider screens */
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 3.4s var(--ease) 0.3s forwards;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.expect {
  display: grid;
  gap: 16px;
  padding-block: 24px 36px;
}

.expect-title {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.expect-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}

.expect-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.expect-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--gold);
}

@media (min-width: 600px) {
  .hero-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 700px) {
  .teide path {
    stroke-width: 1.6;
  }
}

@media (min-width: 1024px) {
  .teide path {
    stroke-width: 1.1;
  }

  /* Two columns: text on the left, the latest project on the right */
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    align-content: center;
    column-gap: clamp(40px, 5vw, 80px);
  }

  .hero-inner > * {
    grid-column: 1;
  }

  /* Slightly smaller headline so it fits its half of the screen */
  .hero-title {
    font-size: clamp(3.25rem, 1.4rem + 3.1vw, 4.5rem);
  }

  .hero-work {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }

  .hero-work img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  }

  .hero-work figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-top: 16px;
    color: var(--on-dark-muted);
    font-size: 0.875rem;
  }

  .hero-work figcaption a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
  }

  .hero-work figcaption a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .expect {
    padding-block: 28px 40px;
  }

  /* All four promises in one row; each stays on one line */
  .expect-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 32px;
  }

  .expect-list li {
    white-space: nowrap;
  }
}

/* Wide screens: the label sits to the left of the promises */
@media (min-width: 1200px) {
  .expect {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 56px;
  }
}


/* -----------------------------------------------------------------------------
   7. SECTIONS AND SECTION HEADINGS
   ----------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
}

.section-sand {
  background: var(--sand-soft);
}

.section-navy {
  background: var(--navy);
  color: var(--on-dark);
}

.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

/* Small uppercase label with a gold hairline, e.g. "SERVICES" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

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

.section-title {
  font-size: clamp(2.375rem, 1.6rem + 3.2vw, 3.625rem);
  line-height: 1.04;
}

.section-intro {
  max-width: 34em;
  margin-top: 20px;
  color: var(--ink-muted);
}

.section-navy .section-intro {
  color: var(--on-dark-muted);
}

.section-aside {
  margin-top: 20px;
}

.section-aside .section-intro {
  margin-top: 0;
}

/* Desktop: title on the left, intro on the right */
@media (min-width: 1024px) {
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    column-gap: 80px;
    max-width: none;
  }

  .section-head .eyebrow {
    grid-column: 1 / -1;
  }

  .section-head .section-title {
    grid-column: 1;
  }

  .section-head .section-intro,
  .section-head .section-aside {
    grid-column: 2;
    margin-top: 0;
  }

  /* Contact: the right column is taller, so line both columns up at the top */
  .section-head.align-top {
    align-items: start;
  }
}


/* -----------------------------------------------------------------------------
   8. SERVICES
   ----------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 16px;
}

.service {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.service-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-deep);
  stroke-width: 1.25;
}

.service-title {
  margin-top: 28px;
  font-size: clamp(1.625rem, 1.4rem + 0.7vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
}

.service-text {
  max-width: 34em;
  margin-top: 10px;
  color: var(--ink-muted);
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}


/* -----------------------------------------------------------------------------
   9. PACKAGES
   ----------------------------------------------------------------------------- */
.package-group + .package-group {
  margin-top: clamp(56px, 8vw, 88px);
}

.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.group-title {
  font-size: 1.875rem;
  font-weight: 600;
}

.group-note {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.packages-grid {
  display: grid;
  gap: 24px;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.package.is-featured {
  border-color: var(--gold);
}

/* "Most popular" tag sitting on the top border */
.package-badge {
  position: absolute;
  top: 0;
  left: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.package-name {
  font-size: 2rem;
  font-weight: 600;
}

.package-desc {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.package-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 24px;
}

.price-amount {
  font-family: var(--serif);
  font-size: 3.25rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1;
  letter-spacing: -0.01em;
}

.price-currency {
  font-size: 0.62em;
}

.price-suffix {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.package-details {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.package-includes {
  margin-bottom: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.package-features {
  display: grid;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.package-features .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--emerald);
  stroke-width: 1.75;
}

.package-note {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.package-cta {
  margin-top: auto;
  padding-top: 28px;
}

/* Wide card: price on the left, features on the right.
   Used for all packages on tablets, and for monthly services on desktop. */
@media (min-width: 700px) and (max-width: 1023.98px) {
  .package {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
    padding: 40px 36px 36px;
  }

  .package-top {
    grid-column: 1;
    grid-row: 1;
  }

  .package-details {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    padding-top: 0;
    padding-left: 40px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .package-cta {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  .package-badge {
    left: 36px;
  }
}

@media (min-width: 1024px) {
  .packages-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .package {
    padding: 40px 32px 32px;
  }

  .package-badge {
    left: 32px;
  }

  /* Monthly services: one wide row each */
  .packages-grid-2 .package {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 56px;
    padding: 40px 48px;
  }

  .packages-grid-2 .package-top {
    grid-column: 1;
    grid-row: 1;
  }

  .packages-grid-2 .package-details {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
    padding-top: 0;
    padding-left: 56px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .packages-grid-2 .package-cta {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
  }

  .packages-grid-2 .package-cta .btn {
    max-width: 280px;
  }
}

.packages-note {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.packages-note:empty {
  display: none;
}

/* The "Custom projects welcome" box: repeats the free-call button */
.custom-cta {
  display: grid;
  align-items: center;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 72px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--on-dark);
}

.custom-cta-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
}

.custom-cta-text {
  margin-top: 8px;
  color: var(--on-dark-muted);
}

@media (min-width: 768px) {
  .custom-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
  }
}


/* -----------------------------------------------------------------------------
   10. RECENT WORK AND TESTIMONIALS
   ----------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  gap: 56px;
}

.work-card {
  display: grid;
  align-content: start;
  gap: 28px;
}

.work-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.work-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* "Client project" or "Concept site": says honestly what each one is */
.work-kind {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.work-category {
  color: var(--gold-deep);
  font-size: 0.875rem;
  font-weight: 600;
}

.work-title {
  margin-top: 6px;
  font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem);
}

.work-text {
  max-width: 34em;
  margin-top: 12px;
  color: var(--ink-muted);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.work-tags li {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}

.work-link:hover {
  text-decoration-color: currentColor;
}

.work-link .icon {
  width: 16px;
  height: 16px;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 40px;
  }

  /* The first project (your main client work) gets the full width */
  .work-card:first-child {
    grid-column: 1 / -1;
  }
}

/* ...and on wide screens it sits side by side: screenshot left, text right */
@media (min-width: 900px) {
  .work-card:first-child {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }
}

.testimonials-grid {
  display: grid;
  gap: 20px;
}


/* -----------------------------------------------------------------------------
   10b. HOW I HELP (rows separated by hairlines)
   ----------------------------------------------------------------------------- */
.help-list {
  border-top: 1px solid var(--line-strong);
}

.help-item {
  display: grid;
  gap: 8px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.help-title {
  font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2.125rem);
  font-weight: 600;
  line-height: 1.15;
}

.help-text {
  max-width: 36em;
  color: var(--ink-muted);
}

@media (min-width: 768px) {
  .help-item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: baseline;
    column-gap: 48px;
    padding-block: 32px;
  }
}

.testimonial {
  height: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.testimonial blockquote p {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
}

.testimonial figcaption {
  margin-top: 20px;
  font-size: 0.9375rem;
}

.testimonial-name {
  display: block;
  font-weight: 600;
}

.testimonial-business {
  display: block;
  color: var(--ink-muted);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* -----------------------------------------------------------------------------
   11. HOW IT WORKS (numbered steps)
   ----------------------------------------------------------------------------- */
.steps {
  display: grid;
}

.step {
  position: relative;
  padding: 0 0 44px 68px;
}

.step:last-child {
  padding-bottom: 0;
}

/* Thin line joining the numbers */
.step::before {
  content: "";
  position: absolute;
  top: 56px;
  bottom: 10px;
  left: 22px;
  width: 1px;
  background: var(--line-dark);
}

.step:last-child::before {
  display: none;
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(200, 169, 106, 0.6);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}

.step-title {
  padding-top: 6px;
  font-size: 1.75rem;
  font-weight: 600;
}

.step-text {
  max-width: 30em;
  margin-top: 8px;
  color: var(--on-dark-muted);
}

@media (min-width: 700px) and (max-width: 1023.98px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 40px;
  }

  .step,
  .step:last-child {
    padding: 0 0 0 68px;
  }

  .step::before {
    display: none;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
  }

  .step,
  .step:last-child {
    padding: 76px 0 0;
  }

  .step::before {
    top: 22px;
    right: -29px;
    bottom: auto;
    left: 61px;
    width: auto;
    height: 1px;
  }
}


/* -----------------------------------------------------------------------------
   12. ABOUT
   ----------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  gap: 56px;
}

.about-photo {
  position: relative;
  width: min(85%, 380px);
}

/* Thin gold frame offset behind the photo */
.about-photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
}

.about-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background: var(--sand);
  object-fit: cover;
}

/* Smaller working photo overlapping the bottom corner of the portrait */
.about-photo .about-inset {
  position: absolute;
  z-index: 2;
  right: -12%;
  bottom: -12%;
  width: 58%;
  aspect-ratio: 4 / 3;
  border: 5px solid var(--ivory);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.about-body {
  max-width: 34em;
  margin-top: 24px;
  font-size: 1.125rem;
  line-height: 1.7;
}

.about-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.about-location .icon {
  color: var(--gold-deep);
}

.about-text .btn {
  margin-top: 32px;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 88px;
  }

  .about-photo {
    width: 100%;
    max-width: 440px;
  }
}


/* -----------------------------------------------------------------------------
   13. CONTACT, BOOKING AND FORM
   ----------------------------------------------------------------------------- */
.contact-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 28px;
}

.contact-direct li:first-child {
  flex: 1 1 100%;
}

.contact-direct .btn {
  width: 100%;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 500;
  text-decoration: none;
}

.contact-link span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.contact-link:hover span {
  text-decoration-color: currentColor;
}

.contact-link .icon {
  color: var(--gold-deep);
}

/* WhatsApp button on its own row, email and phone side by side below it */
@media (min-width: 600px) {
  .contact-direct .btn {
    width: auto;
  }
}

.contact-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px;
  }
}

.panel {
  display: flex;
  flex-direction: column;
  padding: var(--panel-pad);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  scroll-margin-top: 16px; /* a little air when a button jumps here */
}

.panel-title {
  font-size: 1.875rem;
  font-weight: 600;
}

.panel-title:focus:not(:focus-visible) {
  outline: none;
}

.panel-text {
  margin-top: 8px;
  color: var(--ink-muted);
}

.booking {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 24px;
}

/* The embedded calendar. On phones it uses the full card width. */
.booking-frame {
  display: block;
  width: calc(100% + 2 * var(--panel-pad));
  height: 720px;
  margin-inline: calc(-1 * var(--panel-pad));
  border: 0;
  background: var(--paper);
}

.booking-alt {
  margin-top: 12px;
  font-size: 0.875rem;
}

.booking-alt a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-muted);
}

.booking-alt .icon {
  width: 14px;
  height: 14px;
}

@media (min-width: 600px) {
  .booking-frame {
    width: 100%;
    height: 680px;
    margin-inline: 0;
    border-radius: var(--radius);
  }
}

/* Shown while there's no booking link yet */
.booking-soon {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--ivory);
}

.booking-soon > .icon {
  width: 32px;
  height: 32px;
  color: var(--gold-deep);
  stroke-width: 1.25;
}

.booking-soon p {
  max-width: 30em;
}

/* Form fields */
.form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 1rem; /* 16px stops iPhones zooming into the field */
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2430' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b7480;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.45);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.875rem;
}

/* Gold glow when a "Get started" button picks the service for you */
.field.is-prefilled select {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, 0.45);
}

.form-privacy {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.form-status {
  font-size: 0.9375rem;
}

.form-status.is-error {
  color: var(--error);
  font-weight: 600;
}

.form-success {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid rgba(31, 111, 92, 0.35);
  border-radius: var(--radius);
  background: rgba(31, 111, 92, 0.06);
}

.form-success:focus {
  outline: none;
}

.form-success-icon {
  width: 28px;
  height: 28px;
  color: var(--emerald);
  stroke-width: 1.75;
}

.form-success-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}


/* -----------------------------------------------------------------------------
   14. FOOTER
   ----------------------------------------------------------------------------- */
.site-footer {
  padding-block: 64px 36px;
  background: var(--navy);
  color: var(--on-dark);
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.footer-tagline {
  margin-top: 10px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}


/* -----------------------------------------------------------------------------
   14b. QUICK CONTACT BAR (phones and tablets)
   Sits at the bottom of the screen. Hidden (moved below the screen) until
   script.js adds .is-shown, once the first screen's buttons scroll away.
   ----------------------------------------------------------------------------- */
.quick-bar {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 3fr 2fr; /* WhatsApp a little wider than Call */
  gap: 10px;
  /* env(...) keeps the buttons clear of the iPhone home bar */
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-dark);
  background: rgba(11, 27, 43, 0.94);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.quick-bar.is-shown {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease), visibility 0s;
}

.quick-bar .btn {
  min-height: 48px;
  padding: 10px 16px;
}

/* Hidden while the phone menu is open (the menu has its own buttons) */
.menu-locked .quick-bar {
  visibility: hidden;
}

/* Room under the footer so the bar never covers the last lines */
@media (max-width: 1023.98px) {
  .site-footer {
    padding-bottom: calc(36px + 70px + env(safe-area-inset-bottom, 0px));
  }
}

/* Computers have the "Book a call" button in the top bar instead */
@media (min-width: 1024px) {
  .quick-bar {
    display: none;
  }
}


/* -----------------------------------------------------------------------------
   15. LOADING AND SCROLL ANIMATIONS
   ----------------------------------------------------------------------------- */

/* While script.js fills in the text, the first screen waits (so nothing
   jumps), then fades in. Safety net: it appears after 3 seconds regardless. */
.js:not(.is-ready) .header-inner,
.js:not(.is-ready) .hero-inner,
.js:not(.is-ready) .expect {
  visibility: hidden;
  opacity: 0;
  animation: show-anyway 0s linear 3s forwards;
}

@keyframes show-anyway {
  to {
    visibility: visible;
    opacity: 1;
  }
}

.js .header-inner,
.js .hero-inner,
.js .expect {
  transition: opacity 0.8s var(--ease);
}

/* Slow fade-up as sections scroll into view (script.js adds .is-visible) */
.js .reveal,
.js .reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible,
.js .reveal-group.is-visible > * {
  opacity: 1;
  transform: none;
}

.js .reveal-group.is-visible > :nth-child(2) { transition-delay: 0.08s; }
.js .reveal-group.is-visible > :nth-child(3) { transition-delay: 0.16s; }
.js .reveal-group.is-visible > :nth-child(4) { transition-delay: 0.24s; }

/* Visitors who prefer less motion get everything instantly */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal,
  .js .reveal-group > * {
    opacity: 1;
    transform: none;
  }

  .btn:hover {
    transform: none;
  }
}
