/* Tropicbird Polo Co. — site styles. No build step, no external fonts. */
:root {
  --navy: #0d2340;      /* deep ocean navy */
  --navy-2: #163457;
  --sand: #f6f0e4;      /* warm sand / cream background */
  --sand-2: #ece3d0;
  --white: #ffffff;     /* crisp cards */
  --coral: #e8553f;     /* subtle coral accent */
  --coral-dark: #c9412d;
  --ink: #16212e;
  --muted: #5a6573;
  --line: #ded5c2;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(13, 35, 64, 0.08);
  --shadow-lg: 0 14px 40px rgba(13, 35, 64, 0.14);
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--sand); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--coral-dark); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.eyebrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--coral-dark); margin: 0 0 .9em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 58ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 12px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }

/* ---------- Top utility bar ---------- */
.topbar { background: #091a30; color: #c6d0dc; font-size: .8rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.topbar a { color: #dfe6ee; text-decoration: none; font-weight: 600; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.topbar a:hover { color: var(--white); text-decoration: underline; }
.topbar svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 600px) {
  .topbar { font-size: .72rem; }
  .topbar-inner { gap: 8px; }
  .topbar ul { flex-wrap: nowrap; }
  .topbar-links { gap: 10px; }
  .topbar a { white-space: nowrap; letter-spacing: 0; }
  .topbar-social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .topbar-social { gap: 12px; }
  .topbar svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .topbar { font-size: .6rem; }
  .topbar-inner { padding: 0 10px; gap: 6px; }
  .topbar-links { gap: 6px; }
  .topbar-social { gap: 8px; }
  .topbar svg { width: 14px; height: 14px; }
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--white); }
.brand img { width: 46px; flex: none; }
.brand span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav-links a:not(.btn):hover { color: #ffcdc4; }
.nav-toggle { display: none; flex: none; background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white); border-radius: 10px; width: 48px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 6px 24px 20px; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-links li:last-child { margin-top: 14px; }
  .nav-links .btn { width: 100%; }
  .brand span { font-size: 1rem; letter-spacing: .1em; white-space: normal; line-height: 1.15; }
}
@media (max-width: 380px) {
  .brand img { width: 36px; }
  .brand span { font-size: .85rem; letter-spacing: .06em; }
  .wrap { padding: 0 16px; }
}

/* ---------- Image slots (placeholder frame shows until your photo is added) ---------- */
.slot {
  margin: 0; position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); background: var(--sand-2);
}
.slot::before {
  content: "Add photo\A" attr(data-label) "\A" attr(data-size);
  white-space: pre-wrap; position: absolute; inset: 0; display: grid; place-items: center;
  padding: 20px; text-align: center; font-size: .85rem; line-height: 1.6; color: var(--muted);
  overflow-wrap: anywhere; border: 2px dashed #c7b998; border-radius: inherit;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.35) 14px 28px);
}
.slot:has(img)::before { display: none; }
.slot img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero: compact banner band + one-line intro ---------- */
.hero { background: var(--sand); padding: 0; }
/* Slim navy band. The whole banner is shown (never cropped), scaled to fit a capped height;
   the band's navy matches the banner's background so the sides blend in. */
.slot--banner { width: 100%; height: clamp(84px, 11vw, 150px); border-radius: 0; background: var(--navy); }
.slot--banner::before { border: 0; color: #c6d0dc; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.05) 14px 28px); }
.slot--banner img { height: 100%; object-fit: contain; }
.hero-strip { text-align: center; padding-top: 18px; padding-bottom: 0; }
.hero-strip h1 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: .25em; }
.hero-strip p { color: var(--muted); font-size: .95rem; line-height: 1.5; max-width: 70ch; margin: 0 auto; }

/* ---------- Our Tropical Designs: 12-tile grid ---------- */
.designs { background: var(--sand); padding: 16px 0 64px; }
.designs-title { text-align: center; font-size: clamp(1.2rem, 2.2vw, 1.55rem); margin: 0 0 14px; }
/* Tiles flow in rows of --per (7 on desktop = 2 full rows of 7); any part-filled last row is
   centred, so adding or removing a tile never leaves a ragged gap. */
/* Product-line groups (Men / Ladies / Youth & Kids / Beach & Home): small centred label, then a row of tiles.
   Every group uses the same tile width, so the rows line up like one tidy grid. */
.line-group {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 10px;
  font: 700 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--coral-dark);
}
.line-group::before, .line-group::after { content: ""; flex: 0 1 60px; height: 1px; background: var(--line); }
.tiles + .line-group { margin-top: 26px; }
.tiles { --per: 6; --gap: 14px; list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.tiles > li { width: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); }
.tile { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--navy); height: 100%; }
.tile-img {
  display: block; position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: var(--sand-2); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.tile-img.slot::before { content: "Add photo\A" attr(data-label); font-size: .75rem; padding: 10px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.tile:hover .tile-img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile-name { font-weight: 700; font-size: .9rem; line-height: 1.3; text-align: center; }
.tile:hover .tile-name { color: var(--coral-dark); }
.tile-tag {
  position: absolute; z-index: 2; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
.tile-tag--new { background: var(--coral); color: var(--white); }
.tile--soon .tile-name { color: var(--muted); }
.tile-img--shop { background: var(--navy); border-color: var(--navy); display: grid; place-items: center; align-content: center; gap: 6px; }
.tile-img--shop img { width: 52%; height: auto; object-fit: contain; }
.tile-shop-text { color: var(--white); font-family: var(--serif); font-size: .95rem; letter-spacing: .06em; }
.tile--shop .tile-name { color: var(--coral-dark); }
@media (max-width: 860px)  { .tiles { --per: 4; --gap: 12px; } .tile-name { font-size: .82rem; } }
@media (max-width: 520px)  {
  .tiles { --per: 3; }
  /* 4-tile groups: a neat 2 x 2 at the same tile size, centred (no lone tile on a second row) */
  .tiles--4 { --per: 2; max-width: calc((100% - 2 * var(--gap)) / 3 * 2 + var(--gap)); }
}
@media (max-width: 440px)  { .tiles { --gap: 8px; row-gap: 10px; } .tile-name { font-size: .74rem; } .tile-tag { font-size: .6rem; padding: 2px 6px; left: 5px; top: 5px; } .tile-shop-text { font-size: .75rem; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .lede { margin-inline: auto; }

/* ---------- Featured collection ---------- */
.collection { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Category rows: a small group label, then a tidy row of equal cards */
.cat-group {
  display: flex; align-items: center; gap: 16px; margin: 0 0 18px;
  font: 700 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
}
.cat-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards + .cat-group { margin-top: 48px; }
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
/* 3-card row uses the same card width as the 4-card row, centred */
.cards--3 { grid-template-columns: repeat(3, 1fr); max-width: calc((100% - 60px) * .75 + 40px); margin-inline: auto; }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: 14px;
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
/* Every card image: same 4:3 frame, capped height, cropped (not stretched), faces/shirts kept in view */
.slot--card { aspect-ratio: 4 / 3; max-height: 220px; width: 100%; border-radius: 0; }
.slot--card img { object-fit: cover; object-position: center 22%; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.05rem; margin-bottom: .35em; }
.card-body p { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-bottom: .9em; }
.card-link { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--coral-dark); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-soon {
  margin-top: auto; align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  background: var(--sand-2); color: var(--navy); font-size: .82rem; font-weight: 700; letter-spacing: .04em;
}
.card--soon:hover { transform: none; box-shadow: var(--shadow); }

/* ---------- Newsletter strip ---------- */
.newsletter-strip { background: var(--navy); color: #d6dde7; padding: 30px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.newsletter-strip h2 { color: var(--white); font-size: 1.35rem; margin: 0 0 .2em; }
.newsletter-strip p { margin: 0; font-size: .95rem; }
.signup--strip { margin-top: 0; flex: 1; max-width: 480px; position: relative; }
/* message sits just under the form in reserved space, so nothing jumps when it appears */
.signup--strip .signup-note { position: absolute; left: 0; right: 0; top: 100%; margin: 6px 0 0; min-height: 0; font-size: .82rem; line-height: 1.35; }
.newsletter-strip { padding-bottom: 48px; }
@media (max-width: 760px) { .newsletter-strip { padding-bottom: 66px; } }   /* room for a 3-line message on phones */

/* ---------- Coming soon ---------- */
.coming-soon { background: var(--white); padding: 44px 0 48px; border-bottom: 1px solid var(--line); }
.cs-title { text-align: center; font-size: clamp(1.2rem, 2.2vw, 1.55rem); margin: 0 0 20px; }
.cs-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; }
.cs-item { display: flex; gap: 14px; align-items: center; background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cs-img { flex: none; width: 76px; aspect-ratio: 1; border-radius: 10px; background: var(--sand-2); }
.cs-img.slot::before { content: "Add photo"; font-size: .65rem; padding: 4px; border-width: 1px; }
.cs-img img { width: 100%; height: 100%; object-fit: cover; }
.cs-item h3 { font-size: 1rem; margin: 0 0 .2em; }
.cs-item p { font-size: .85rem; color: var(--muted); line-height: 1.4; margin: 0 0 .35em; }
.cs-when { font-size: .75rem; font-weight: 700; color: var(--coral-dark); letter-spacing: .03em; }
.cs-when em { font-style: normal; }
.cs-cta { text-align: center; margin: 20px 0 0; font-weight: 700; }
.cs-cta a { color: var(--coral-dark); text-decoration: none; }
.cs-cta a:hover { text-decoration: underline; }
@media (max-width: 860px) { .cs-list { grid-template-columns: 1fr; max-width: 480px; } }

/* ---------- New designs (auto gallery) ---------- */
.new-designs { background: var(--sand); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 22px; }
.design { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.design-img { display: block; aspect-ratio: 1; background: var(--sand-2); }
.design-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.design-img:hover img { transform: scale(1.03); }
.design-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.design-body h3 { font-size: 1rem; line-height: 1.3; margin-bottom: 10px; }
.design-links { margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; font-weight: 700; }
.design-links a { color: var(--coral-dark); text-decoration: none; }
.design-links a:hover { text-decoration: underline; }
.gallery-follow { text-align: center; margin: 36px 0 0; font-weight: 700; }
.gallery-follow a { color: var(--navy); }
.new-designs + .story { border-top: 1px solid var(--line); }

/* ---------- Our story ---------- */
.story { background: var(--sand); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.slot--story { aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.story-copy p:not(.eyebrow) { color: var(--ink); max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c6d0dc; padding: 64px 0 0; }
.site-footer h2 { color: var(--white); font-size: 1.6rem; }
.site-footer a { color: #e6ecf3; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; padding-bottom: 48px; }
.signup { display: flex; gap: 10px; max-width: 460px; margin-top: 18px; }
.signup input {
  flex: 1; min-width: 0; min-height: 50px; padding: 0 18px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: var(--white); font: 1rem var(--sans);
}
.signup input::placeholder { color: #93a2b5; }
.signup input:focus { outline: none; border-color: var(--coral); }
.signup-note { min-height: 1.4em; margin-top: 10px; font-size: .92rem; color: #ffcdc4; }
.footer-links-col { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 24px; font-size: .92rem; }
.footer-base p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .story-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-strip { padding-top: 18px; }
  .hero-strip p { font-size: .9rem; }
  .cards--4, .cards--3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: .95rem; }
  .card-body p { font-size: .84rem; }
  .card-link { font-size: .85rem; }
  .signup { flex-direction: column; }
  .signup .btn { width: 100%; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { padding: 56px 0 72px; }
.legal .wrap { max-width: 780px; }
.legal article { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 52px); }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.back { display: inline-block; margin-bottom: 20px; font-weight: 700; text-decoration: none; }
.site-footer .wrap > p { margin: 0; }
body:has(.legal) .site-footer { padding: 28px 0; }
body:has(.legal) .site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
