/* ============================================================
   Casa Isabella Creative
   Production stylesheet — recreated from the Claude Design export.
   ============================================================ */

:root {
  /* Palette */
  --blue: #94a9c5;
  --cream: #e6e5e4;
  --cream-card: #f4efe3;  /* warm cream panel for the inquiry form */
  --ink: #3a4654;        /* primary body text */
  --ink-dark: #2a2218;   /* headings on cream */
  --ivory: #f5f1e8;      /* text on blue */
  --bio: #46505e;
  --ink-muted: #6b7686;
  --warm-muted: #857a68;
  --acc-copy: #5a4f40;

  /* Typography */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --script: 'Pinyon Script', cursive;

  /* Surfaces — soft white wash over linen textures */
  --wash: linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .25));
  --bg-blue: var(--wash), var(--blue) url('assets/texture-blue.jpg') center / cover;
  --bg-cream: var(--wash), var(--cream) url('assets/texture-cream.jpg') center / cover;

  --shadow-soft: 0 1px 3px rgba(46, 58, 74, .35);
  --side-pad: 48px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--blue);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

::selection { background: rgba(58, 70, 84, .18); }

@keyframes ci-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Accessibility helpers -------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   Shared atoms
   ============================================================ */
.section { padding: clamp(72px, 9vw, 140px) var(--side-pad); }
.section--cream { background: var(--bg-cream); }

.heading {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}
.heading em { font-style: italic; font-weight: 500; }
.heading--ink { color: var(--ink-dark); }
.heading--ivory { color: var(--ivory); }

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}
.eyebrow--ink-muted { color: var(--ink-muted); }
.eyebrow--warm-muted { color: var(--warm-muted); }
.eyebrow-rule { height: 1px; width: 54px; }
.eyebrow-rule--ink  { background: rgba(58, 70, 84, .4); }
.eyebrow-rule--warm { background: rgba(42, 34, 24, .32); }

/* Decorative line-art deer dividers */
.divider {
  display: flex;
  justify-content: center;
}
.divider img {
  display: block;
  height: 40px;
  width: auto;
  opacity: .92;
}
.divider--ink { color: var(--ink-dark); }
.divider--ivory { color: var(--ivory); }

/* Pill button / link */
.btn-pill {
  display: inline-block;
  cursor: pointer;
  background: var(--ivory);
  color: var(--ink);
  border: none;
  border-radius: 40px;
  padding: 11px 30px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: .5px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(46, 58, 74, .25); }
.btn-pill--lg { margin-top: 40px; padding: 14px 40px; font-size: 22px; letter-spacing: normal; }

/* Underlined text link */
.btn-text {
  display: inline-block;
  align-self: flex-start;
  margin-top: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 0 5px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-dark);
  transition: opacity .25s ease;
}
.btn-text:hover { opacity: .65; }

/* ============================================================
   HERO (blue)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-blue);
  color: var(--ivory);
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--side-pad);
  border-bottom: 1px solid rgba(245, 241, 232, .28);
}

.brand {
  display: flex;
  align-items: baseline;   /* wordmark baseline sits on the crest's bottom edge */
  gap: 15px;
  text-decoration: none;
  color: var(--ivory);
}
.brand-crest { height: 72px; width: auto; display: block; }
.brand-name {
  font-family: var(--script);
  font-size: 37px;
  line-height: .82;
  color: var(--ivory);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 42px;
}
.main-nav {
  display: flex;
  gap: 38px;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 400;
}
.main-nav a {
  color: var(--ivory);
  text-decoration: none;
  opacity: .9;
  transition: opacity .25s ease;
}
.main-nav a:hover { opacity: 1; }

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 120px;
}
.hero-eyebrow {
  margin: 0 0 28px;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: var(--shadow-soft);
}
.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 7.6vw, 104px);
  line-height: 1.02;
  letter-spacing: .5px;
}
.hero-title em { font-style: italic; font-weight: 500; }
.hero-sub {
  margin: 34px auto 0;
  max-width: 620px;
  font-size: 13.5px;
  letter-spacing: 2.2px;
  line-height: 2;
  text-transform: uppercase;
  font-weight: 400;
  text-shadow: var(--shadow-soft);
}
.hero-footcue {
  display: flex;
  justify-content: center;
  padding-bottom: 34px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: .95;
  text-shadow: 0 1px 3px rgba(46, 58, 74, .3);
}

/* ============================================================
   ABOUT (cream)
   ============================================================ */
.about .divider { color: var(--ink-dark); margin: 0 0 clamp(54px, 7vw, 88px); }
.about .divider--bottom { margin: clamp(50px, 6vw, 80px) 0 0; }

.about-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 100px);
  align-items: center;
}

.portrait-frame {
  padding: 13px;
  border: 1px solid rgba(58, 70, 84, .35);
  border-radius: 260px 260px 6px 6px;
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: clamp(420px, 52vw, 640px);
  object-fit: cover;
  object-position: center 20%;
  border-radius: 252px 252px 4px 4px;
}

.about-bio .eyebrow-row { margin-bottom: 22px; }
.about-bio .heading {
  margin: 0 0 30px;
  font-size: clamp(32px, 4vw, 52px);
}
.bio-copy {
  font-size: 16px;
  line-height: 1.9;
  color: var(--bio);
  max-width: 560px;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bio-copy p { margin: 0; }

/* ============================================================
   SERVICES (cream)
   ============================================================ */
.services { padding: clamp(74px, 9vw, 128px) var(--side-pad); }
.services-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: clamp(40px, 5.5vw, 76px);
  align-items: center;
}
.services-left .eyebrow-row { margin-bottom: 18px; }
.heading--services {
  margin: 0 0 34px;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.04;
}

/* Accordion */
.accordion { border-top: 1px solid rgba(42, 34, 24, .2); }
.acc-item { border-bottom: 1px solid rgba(42, 34, 24, .2); }
.acc-btn {
  width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  padding: 21px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--sans);
  color: var(--ink-dark);
  text-align: left;
}
.acc-title {
  font-size: 15.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.acc-chev {
  display: inline-block;
  flex: none;
  font-size: 18px;
  transition: transform .4s ease;
}
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }

.acc-body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .55s ease, opacity .4s ease;
}
.acc-body p {
  margin: 0;
  padding: 0 4px 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--acc-copy);
  font-weight: 300;
  max-width: 430px;
}

.services-photo {
  padding: 11px;
  border: 1px solid rgba(42, 34, 24, .28);
  border-radius: 6px;
  align-self: center;
}
.services-photo img {
  display: block;
  width: 100%;
  height: clamp(340px, 40vw, 430px);
  object-fit: cover;
  object-position: center 32%;
  border-radius: 3px;
}

/* ============================================================
   CONTACT (blue)
   ============================================================ */
.contact {
  background: var(--bg-blue);
  color: var(--ivory);
  padding: clamp(80px, 10vw, 150px) var(--side-pad);
  text-align: center;
}
.contact .divider { margin: 0 0 clamp(42px, 5vw, 64px); }
.contact-eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: var(--shadow-soft);
}
.contact-title {
  margin: 0 auto;
  max-width: 780px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.08;
}

/* ============================================================
   FOOTER (cream)
   ============================================================ */
.site-footer {
  color: var(--ink);
  padding: clamp(48px, 6vw, 74px) var(--side-pad) clamp(34px, 4vw, 46px);
}
.site-footer .divider { margin: 0 0 clamp(34px, 4vw, 52px); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer-name { font-size: 34px; line-height: 1; color: var(--ink); }
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 14px;
  letter-spacing: .5px;
}
.footer-links a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity .25s ease;
}
.footer-links a:hover { opacity: .65; }
.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-ig svg { display: block; }
.footer-bottom {
  max-width: 1180px;
  margin: clamp(28px, 3vw, 38px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(58, 70, 84, .18);
  text-align: center;
}
.footer-bottom span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .6;
}

/* ============================================================
   INQUIRY MODAL — cream form panel on a blue-fabric backdrop.
   Shown only when an "Inquire" button is clicked.
   ============================================================ */
.inquiry {
  border: none;
  padding: 0;
  background: transparent;
  width: min(880px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow: visible;
  color: var(--ink);
}
.inquiry::backdrop {
  background:
    linear-gradient(rgba(46, 58, 74, .34), rgba(46, 58, 74, .34)),
    var(--blue) url('assets/texture-blue.jpg') center / cover;
}
/* Entry animation */
.inquiry[open] { animation: ci-rise .4s ease both; }

.inquiry-card {
  position: relative;
  background: var(--cream-card);
  border-radius: 26px;
  padding: clamp(40px, 5vw, 70px) clamp(26px, 5vw, 74px);
  box-shadow: 0 30px 80px rgba(46, 58, 74, .35);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

.inquiry-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
  opacity: .55;
  border-radius: 50%;
  transition: opacity .25s ease, background .25s ease;
}
.inquiry-close:hover { opacity: 1; background: rgba(58, 70, 84, .08); }

/* Form grid */
.inquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 34px;
}
/* `hidden` must win over the explicit `display:grid` above */
.inquiry-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--warm-muted);
  margin-bottom: 14px;
}
.field label .opt {
  margin-left: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--warm-muted);
  opacity: .85;
}

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(58, 70, 84, .28);
  padding: 9px 2px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(58, 70, 84, .42); }
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
  box-shadow: 0 1px 0 0 var(--ink);   /* simulates a 2px underline, no layout shift */
}
.field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.7;
}
/* invalid only after the browser has flagged it */
.field input:user-invalid { border-bottom-color: #b4564f; }

/* Spam honeypot — kept out of view and out of the tab order */
.inquiry-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.inquiry-actions { display: flex; justify-content: center; margin-top: 12px; }
.inquiry-submit {
  cursor: pointer;
  background: var(--ink);
  color: var(--ivory);
  border: none;
  border-radius: 40px;
  padding: 16px 56px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: .3px;
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.inquiry-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46, 58, 74, .3); }
.inquiry-submit[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }

.inquiry-status {
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px;
  color: #b4564f;
  min-height: 1em;
}
.inquiry-status:empty { display: none; }

/* Success state */
.inquiry-success { text-align: center; }
.inquiry-success .divider { margin-bottom: 24px; }
.inquiry-success-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  color: var(--ink);
}
.inquiry-success-title em { font-style: italic; }
.inquiry-success p {
  margin: 0 auto 26px;
  max-width: 420px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--bio);
}
.inquiry-success .btn-text { color: var(--ink); border-bottom-color: var(--ink); }

/* Lock background scroll while the modal is open */
html.modal-open, body.modal-open { overflow: hidden; }

/* ============================================================
   Responsive — the prototype was desktop-only; these
   breakpoints preserve the desktop layout and gracefully
   reflow it down to mobile.
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 64px); }
  .portrait-frame { max-width: 460px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: 1fr; gap: clamp(36px, 7vw, 56px); }
  .services-photo { order: -1; max-width: 460px; margin: 0 auto; width: 100%; }
}

@media (max-width: 760px) {
  :root { --side-pad: 28px; }

  .hero-topbar {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
  }
  .topbar-right {
    width: 100%;
    flex-direction: column;
    gap: 20px;
  }
  .main-nav { justify-content: center; gap: 28px; }

  .hero-center { padding: 48px 20px 90px; }
}

/* Stack the inquiry form on narrow screens */
@media (max-width: 600px) {
  .inquiry { width: calc(100% - 24px); }
  .inquiry-form { grid-template-columns: 1fr; row-gap: 24px; }
  .inquiry-card { border-radius: 20px; padding: clamp(44px, 9vw, 56px) 24px 40px; }
  .inquiry-submit { width: 100%; padding: 16px 24px; }
}

@media (max-width: 480px) {
  :root { --side-pad: 20px; }

  /* Topbar wordmark was oversized on phones — scale it down so it doesn't crowd the edges */
  .brand-crest { height: 54px; }
  .brand-name { font-size: 27px; }
  .main-nav { gap: 22px; font-size: 12px; letter-spacing: 2px; }

  /* Looser, calmer hero tagline on small screens */
  .hero-center { padding: 40px 18px 80px; }
  .hero-sub { letter-spacing: 1.6px; line-height: 1.85; }

  .footer-links { gap: 22px; }
  .footer-email { word-break: break-word; }
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
