/* ===================================================================
   Sand Crab Studio — styles
   Palette pulled from the logo: sand/cream + deep navy + crab-shell coral
   =================================================================== */

:root {
  /* Neutral background family — light dusty blue-gray */
  --sand:        #d7dee6;
  --sand-light:  #e8ecf1;
  --sand-dark:   #c4cdd7;
  --navy:        #16233b;
  --navy-soft:   #24344f;
  --coral:       #d9704e;
  --coral-dark:  #c25b3a;
  --ink:         #1a2333;
  --muted:       #5c6472;
  --line:        rgba(22, 35, 59, 0.12);

  --maxw: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(22, 35, 59, 0.35);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 600; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coral-dark);
  margin: 0 0 0.6rem;
}

.accent { color: var(--coral); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }

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

.text-link {
  color: var(--coral-dark);
  font-weight: 600;
  font-size: 0.92rem;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(237, 230, 213, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand-logo { height: 46px; width: auto; border-radius: 6px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a { font-weight: 500; font-size: 0.95rem; color: var(--navy); }
.nav-menu a:hover { color: var(--coral-dark); }
.nav-cta {
  background: var(--navy);
  color: var(--sand-light) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 80% -10%, rgba(217, 112, 78, 0.14), transparent 60%),
    linear-gradient(180deg, var(--sand-light), var(--sand));
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-logo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
}
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--sand-light); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.8rem; }
.card-links { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; }
.card-links .link-muted { color: var(--muted); }
.card-links .link-muted:hover { color: var(--coral-dark); }
.back-link { color: var(--muted); font-weight: 600; }
.back-link:hover { color: var(--coral-dark); }
.freebies-empty { color: var(--muted); font-size: 1.05rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.thumb-shot { background: var(--navy); }
.thumb-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.thumb-shot .thumb-tag { position: relative; z-index: 1; }

.thumb-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #2f9e44;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.6rem 0.28rem 0.85rem;
  border-radius: 999px;
}
.thumb-badge::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.thumb-1 { background: linear-gradient(135deg, #24344f, #16233b); }
.thumb-2 { background: linear-gradient(135deg, #d9704e, #b74b30); }
.thumb-3 { background: linear-gradient(135deg, #3c6e71, #1f4b4d); }
.thumb-4 { background: linear-gradient(135deg, #5b6a8f, #2f3c5c); }

.thumb-tag {
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.project-body p { color: var(--muted); margin: 0 0 1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.tags li {
  font-size: 0.78rem;
  background: var(--sand-dark);
  color: var(--navy);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--coral-dark);
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.service h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service p { color: var(--muted); margin: 0; }

/* ---------- Freebies teaser ---------- */
.freebies-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.freebies-teaser-copy { max-width: 640px; }
.freebies-teaser .section-sub { margin-top: 0.6rem; }
.freebies-teaser .btn { flex-shrink: 0; }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.process-list li {
  border-top: 3px solid var(--coral);
  padding-top: 1.2rem;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--coral);
  font-weight: 600;
}
.process-list h3 { font-size: 1.3rem; margin: 0.4rem 0 0.5rem; }
.process-list p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-copy p { color: var(--muted); }
.value-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.value-list li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--ink);
}
.value-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--coral);
}
.about-media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-copy p { color: var(--muted); }
.contact-details { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.contact-details li {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-details span {
  min-width: 90px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-top: 2px;
}
.contact-details a { color: var(--coral-dark); font-weight: 500; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--sand-light);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(217, 112, 78, 0.18);
  background: #fff;
}
.field textarea { resize: vertical; }
.contact-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); min-height: 1.2em; font-weight: 500; }
.form-note.ok { color: #2f9e44; }
.form-note.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--sand);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: center;
}
.footer-logo { height: 54px; border-radius: 8px; background: var(--sand-light); padding: 4px; }
.footer-brand p { margin: 0.8rem 0 0; color: rgba(246, 241, 230, 0.7); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: var(--sand); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--coral); }
.footer-copy {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(246, 241, 230, 0.15);
  padding-top: 1.5rem;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(246, 241, 230, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 420px; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 420px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--sand-light);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 0.75rem 0; width: 100%; }
  .nav-menu.open { max-height: 340px; }
  .nav-cta { margin-top: 0.5rem; display: inline-block !important; width: auto; }
}

@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .services-grid, .process-list { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

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