/* ======================================================================
   SYDNEY BY THE SEA — styles.css
   Sections below are in the same order as index.html:
     0a. FONT FILES (Talklessy)
     0. SETTINGS (colors, fonts, sizes)  ← change the look here first
     0b. SHARED (buttons, layout helpers)
     1. HEADER
     2. HERO
     3. ABOUT
     4. DAILY ADVENTURES
     5. MY FAVE THINGS
     6. PAWTNERS
     7. CONTACT
     8. FOOTER
     9. MOBILE (small-screen tweaks for every section)
   ====================================================================== */


/* ======================================================================
   0a. FONT FILES — Talklessy (handwritten font used in the design)
   Put the font file(s) in the /fonts folder with these exact names.
   ====================================================================== */
@font-face {
  font-family: "Talklessy";
  src: url("fonts/Talklessy.woff2") format("woff2"),
       url("fonts/Talklessy.woff")  format("woff"),
       url("fonts/Talklessy.otf")   format("opentype"),
       url("fonts/Talklessy.ttf")   format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ======================================================================
   0. SETTINGS — colors, fonts, sizes
   ====================================================================== */
:root {
  /* Colors */
  --navy:        #1E3F58;   /* main text + headings */
  --text-soft:   #2F4A5E;   /* body copy */
  --gold:        #E29301;   /* logo + "work wif me" button */
  --blue:        #3C6EAE;   /* section titles + blue buttons */
  --blue-deep:   #1D5EA8;   /* footer */
  --pink:        #EC5A76;   /* "send woof" button */
  --yellow:      #F9D34A;   /* "sign me up" button */

  /* Section backgrounds */
  --bg-header:   #FBF3E9;
  --bg-about:    #FCF3E8;   /* matches the paper background in about-polaroid.jpg */
  --bg-adventures: #FDFCFA;
  --bg-faves:    #EAF1F3;
  --bg-partners: #FDF6EF;
  --bg-contact:  #FAFAF5;

  /* Fonts — same as the design file:
     Talklessy (handwritten) loads from /fonts (see fonts/README.txt).
     Until that file is added, Gochi Hand is shown instead. */
  --font-hand:   "Talklessy", "Gochi Hand", cursive;              /* headings */
  --font-note:   "Talklessy", "Gochi Hand", cursive;              /* nav, captions, labels, buttons */
  --font-body:   "Plus Jakarta Sans", system-ui, sans-serif;      /* paragraphs */

  --cream-text:  #F8EFE4;   /* text on the gold button */

  /* Design unit: 1px of the 1920px-wide Illustrator artboard */
  --u: calc(100vw / 1920);

  /* Layout */
  --max-width:   1240px;
  --section-pad: 96px;
  --radius:      14px;
}


/* ======================================================================
   0b. SHARED — reset, buttons, layout helpers used by several sections
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* when GSAP smooth scrolling is on, it handles the smoothness instead */
html.has-smoother { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg-about);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.hand { font-family: var(--font-hand); font-weight: 400; }
.hidden { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  border: 0; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px;
}
.btn-blue   { background: var(--blue); color: #fff; }
.btn-pink   { background: var(--pink); color: #fff; font-family: var(--font-hand); font-size: 20px; font-weight: 400; letter-spacing: .06em; }
.btn-yellow { background: var(--yellow); color: var(--blue-deep); font-family: var(--font-hand); font-size: 20px; font-weight: 400; }

/* Two-column "intro on the left, content on the right" layout
   used by Daily Adventures, My Fave Things and Pawtners */
.split {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 56px;
  align-items: center;
}
.split-intro p { font-size: 17px; line-height: 1.45; color: var(--text-soft); margin: 14px 0 22px; max-width: 220px; }
.section-title { margin: 0; font-size: 36px; line-height: 1.35; color: var(--blue); }
.section-title svg { display: inline-block; vertical-align: middle; margin-left: 4px; }


/* ======================================================================
   1. HEADER
   Sizes use --u = 1px of the 1920px-wide design, so the header scales
   with the screen exactly like the Illustrator layout.
   (e.g. calc(43.7 * var(--u)) = 43.7px on a 1920px screen)
   ====================================================================== */
.site-header {
  background: var(--bg-header);
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;   /* fixed so it stays put while the page glides underneath */
}
/* Same height as the header, so the page starts below it */
.header-spacer { height: max(64px, calc(130.6 * var(--u))); }
/* menu links (#about etc.) stop below the fixed header */
[id] { scroll-margin-top: max(64px, calc(130.6 * var(--u))); }
.header-inner {
  height: calc(130.6 * var(--u)); min-height: 64px;
  padding: 0 calc(47 * var(--u)) 0 calc(101.5 * var(--u));
  display: flex; align-items: center;
}

/* Logo (images/logo.svg, exported from Illustrator) */
.logo { display: block; flex-shrink: 0; }
.logo img { width: max(120px, calc(261 * var(--u))); margin-top: calc(9 * var(--u)); }

/* Nav */
.site-nav { display: flex; align-items: center; flex: 1; margin-left: calc(142 * var(--u)); }
.nav-links { display: flex; gap: calc(50 * var(--u)); }
.nav-links a {
  font-family: var(--font-note); font-size: max(16px, calc(43.7 * var(--u)));
  text-decoration: none; color: var(--navy); white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }

/* Social icons */
.socials { display: flex; align-items: center; gap: calc(22 * var(--u)); margin-left: auto; }
.socials a { color: var(--navy); display: flex; }
.socials a:hover { color: var(--gold); }
.socials svg { width: max(18px, calc(34 * var(--u))); height: max(18px, calc(34 * var(--u))); }

/* "work wif me!" pill button */
.btn-gold {
  margin-left: calc(46 * var(--u));
  height: max(36px, calc(62 * var(--u)));
  min-height: 0; padding: 0 max(14px, calc(28 * var(--u))); gap: calc(12 * var(--u));
  border-radius: 999px;
  background: var(--gold); color: var(--cream-text);
  font-family: var(--font-note); font-weight: 400; font-size: max(16px, calc(44.9 * var(--u)));
  letter-spacing: 0; white-space: nowrap;
}
.btn-gold .paw { width: max(14px, calc(25 * var(--u))); height: max(14px, calc(25 * var(--u))); }

/* Hamburger (only shows on mobile, see section 9) */
.menu-toggle { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; margin-left: auto; }


/* ======================================================================
   2. HERO
   .hero-stage is the 1920 × 645 artboard from Illustrator. The photo,
   the doodles (images/hero-doodles.svg) and the wavy bottom
   (#hero-wave in index.html) are all positioned inside it in %, so they
   stay perfectly lined up at every screen size.
   ====================================================================== */
.hero { position: relative; background: var(--bg-about); overflow: hidden; }
.hero-stage {
  position: relative; width: 100%;
  aspect-ratio: 1920 / 645.4;
  overflow: hidden;
  -webkit-clip-path: url(#hero-wave);
          clip-path: url(#hero-wave);
}
/* Photo placement copied from the design file */
.hero-photo {
  position: absolute; max-width: none;
  left: 0; top: -16.98%; width: 100.85%; height: 117.61%;
}
.hero-doodles { position: absolute; inset: 0; width: 100%; height: 100%; }


/* ======================================================================
   3. ABOUT
   Desktop: every piece is positioned in --u (1px of the 1920px design),
   measured from the top of this section, matching the Illustrator artboard.
   ====================================================================== */
.about { background: var(--bg-about); }
.about-grid { position: relative; height: calc(627 * var(--u)); }
.about-grid > * { position: absolute; margin: 0; }

/* Polaroid (left) */
.about-photo { left: calc(36 * var(--u)); top: calc(60 * var(--u)); width: calc(560 * var(--u)); }
.about-photo img {
  width: 100%;
  /* soften the photo's edges so its cream background melts into the section */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5%, #000 97.5%, transparent), linear-gradient(to bottom, transparent, #000 2.5%, #000 97.5%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 2.5%, #000 97.5%, transparent), linear-gradient(to bottom, transparent, #000 2.5%, #000 97.5%, transparent);
          mask-composite: intersect;
}

/* Title SVG */
.about-title { left: calc(690 * var(--u)); top: calc(48 * var(--u)); width: calc(570 * var(--u)); line-height: 0; }
.about-title img { width: 100%; }

/* Intro paragraph */
.about-intro {
  left: calc(616 * var(--u)); top: calc(288 * var(--u)); width: calc(710 * var(--u));
  text-align: center; color: var(--navy);
  font-size: max(14px, calc(27.35 * var(--u))); line-height: 1.75;
}

/* Checklist tags SVG (right) */
.traits { left: calc(1430 * var(--u)); top: calc(136 * var(--u)); width: calc(380 * var(--u)); }
.traits-art { width: 100%; }
/* the plain list is only for phones; on desktop it's hidden but still read by Google/screen readers */
.traits-list {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}


/* ======================================================================
   4. DAILY ADVENTURES
   Title, paragraph, button and grid are shared with "my fave things"
   (.split, .split-intro, .section-title, .btn-blue in SHARED above),
   so both sections always line up.
   ====================================================================== */
.adventures { background: #FFFFFF; padding: var(--section-pad) 0; }
.adv-heart { height: .8em; width: auto; aspect-ratio: 41.6 / 51; vertical-align: -.08em; margin-left: .1em; }   /* hand-drawn heart from Sydney_Doodle_Elements.svg */

/* Four cards: they fill the same right-hand column as the fave circles */
.adv-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.adv-card a {
  position: relative; display: block; text-decoration: none; color: #1B1B1B;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(30,58,82,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.adv-card a:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(30,58,82,.2); }
.adv-card img { width: 100%; aspect-ratio: 265 / 362; object-fit: cover; }
.adv-card p {
  margin: 0; min-height: 60px; padding: 8px 6px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-note); font-size: 16px; line-height: 1.1;
}
/* platform icon in the top-left corner */
.adv-icon { position: absolute; left: 10px; top: 10px; width: 20px; height: 20px; }


/* ======================================================================
   5. MY FAVE THINGS
   ====================================================================== */
.faves { position: relative; background: var(--bg-faves); padding: var(--section-pad) 0; }
.sparkle-title::before, .sparkle-title::after {
  content: "✦"; font-size: 16px; color: #E5A21B;
}
.sparkles { position: absolute; width: 56px; }
.sparkles-right { right: 4%; top: 36px; }

.faves-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.faves-list a { display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none; }
.circle {
  width: 100%; max-width: 200px; aspect-ratio: 1; border-radius: 50%;
  background: #fff; overflow: hidden;
  box-shadow: 0 6px 18px rgba(30,58,82,.12);
  transition: transform .2s ease;
}
.circle img { width: 100%; height: 100%; object-fit: cover; }
.faves-list a:hover .circle { transform: scale(1.05); }
.label { font-family: var(--font-note); font-size: 22px; color: var(--navy); }


/* ======================================================================
   6. PAWTNERS
   ====================================================================== */
.partners { background: var(--bg-partners); padding: 72px 0; }
.partners .subtitle { margin: 0 0 22px 18px; font-size: 22px; color: var(--blue); max-width: none; }
.logos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px; align-items: center; justify-items: center;
}
.logos img { max-height: 70px; width: auto; }


/* ======================================================================
   7. CONTACT
   ====================================================================== */
.contact { background: var(--bg-contact); padding: 72px 0 110px; }
.contact-grid {
  position: relative;
  display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 56px; align-items: center;
}
.contact-photo img { width: 100%; max-width: 420px; }

.contact-title { margin: 0 0 18px; font-size: clamp(40px, 4.2vw, 58px); color: var(--blue-deep); }
.contact-title .underline {
  background: linear-gradient(transparent 82%, #E94F72 82%, #E94F72 94%, transparent 94%);
}
.contact-sub { margin: 0 0 28px; font-size: 22px; line-height: 1.4; color: #2A2A2A; }

/* Form */
.contact-form {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
  max-width: 640px;
}
.field { display: block; }
.field-wide { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font-family: var(--font-note); font-size: 17px; color: var(--navy);
  background: #fff; border: 1.5px solid #C9CDD2; border-radius: 8px;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form ::placeholder { color: #5C6670; }
.contact-form .btn { grid-column: 1 / -1; justify-self: center; min-width: 200px; }

.smiley { position: absolute; right: 0; top: 56%; width: 60px; }


/* ======================================================================
   8. FOOTER
   ====================================================================== */
.site-footer { position: relative; background: var(--blue-deep); color: #fff; padding: 36px 0 40px; }
.footer-wave { position: absolute; left: 0; top: -22px; width: 100%; height: 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1.1fr .8fr; gap: 40px; align-items: center;
}

/* Newsletter */
.newsletter-intro { display: flex; align-items: center; gap: 22px; }
.envelope { width: 90px; flex-shrink: 0; }
.newsletter-intro h2 { margin: 0 0 6px; font-size: 32px; }
.newsletter-intro p { margin: 0; font-size: 15px; line-height: 1.55; }
.newsletter-form { display: flex; gap: 14px; }
.newsletter-form label { flex: 1; }
.newsletter-form input {
  width: 100%; height: 48px; padding: 0 14px; border: 0; border-radius: 6px;
  font-family: var(--font-body); font-size: 15px;
}
.newsletter-form .btn { border-radius: 6px; }

/* Copyright */
.footer-legal p { margin: 0; font-size: 14px; line-height: 1.6; }
.footer-brand { font-weight: 700; color: #8FE3D3; letter-spacing: .04em; margin-bottom: 4px !important; }


/* ======================================================================
   9. MOBILE — small-screen tweaks (grouped by section)
   ====================================================================== */
@media (max-width: 1100px) {
  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --section-pad: 64px; }

  /* HEADER — hamburger menu */
  .header-inner { height: 72px; padding: 0 16px 0 20px; }
  .header-spacer { height: 72px; }
  [id] { scroll-margin-top: 72px; }
  .logo img { width: 130px; margin-top: 4px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: center; gap: 20px; margin: 0;
    background: var(--bg-header); padding: 20px 24px 28px;
    box-shadow: 0 10px 20px rgba(30,58,82,.1);
  }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: center; gap: 12px; }
  .nav-links a { font-size: 26px; }
  .socials { margin: 0; gap: 22px; }
  .socials svg { width: 24px; height: 24px; }
  .btn-gold { margin: 0; height: 50px; padding: 0 24px; font-size: 24px; }

  /* HERO — on phones, zoom in on the part of the artboard from the paw prints
     (x ≈ 100) to "dat's me!" (x ≈ 1360) so all the doodles around Sydney show.
     width = 1920 / 1260 × 100vw ; margin-left = -(100 / 1920) × width */
  .hero-stage { width: 152.4vw; margin-left: -7.94vw; }

  /* ABOUT — stack: title, polaroid, intro, tags */
  .about { padding: 36px 20px 56px; }
  .about-grid { height: auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .about-grid > * { position: static; }
  .about-title { order: 1; width: min(88vw, 400px); }
  .about-photo { order: 2; width: min(92vw, 420px); }
  .about-intro { order: 3; width: auto; max-width: 520px; font-size: 16px; }
  .traits { order: 4; width: auto; }
  .traits-art { display: none; }
  .traits-list {               /* straight tags on phones */
    position: static; width: auto; height: auto; overflow: visible; clip: auto;
    display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  }
  .traits-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 22px 10px 18px; border-radius: 14px;
    background: #F4E7DB;                       /* same tag colour as the design */
    font-family: var(--font-note); font-size: 26px; line-height: 1.1; color: #3D4D5B;
  }
  .traits-list .check { width: 22px; height: 22px; flex-shrink: 0; margin-top: -4px; color: #3D4D5B; }

  /* DAILY ADVENTURES / FAVES / PAWTNERS share .split */
  .split { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .split-intro p { margin-left: auto; margin-right: auto; }
  .faves-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* DAILY ADVENTURES — cards 2 × 2 */
  .adv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* CONTACT */
  .contact-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .contact-photo img { max-width: 300px; }
  .contact-form { grid-template-columns: 1fr; margin: 0 auto; }
  .smiley { display: none; }

  /* FOOTER */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .newsletter-intro { flex-direction: column; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .newsletter-form { flex-direction: column; }
}
