/*
 *= require_self
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #FDF4E2;
  --amber:    #FEA62E;
  --burnt:    #C8783B;
  --dark:     #2D1400;
  --mid:      #D46F11;
  --light:    #F1A569;
  --pale:     #EABC80;
  --deepdark: #251914;
  --white:    #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .nav-logo-text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 2px solid var(--pale);
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--burnt); }

.nav-cta {
  background: var(--amber);
  color: var(--dark) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--burnt) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ─── HAMBURGER (hidden on desktop) ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 60px 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🐾';
  position: absolute;
  font-size: 180px;
  opacity: 0.04;
  top: 10%;
  right: 5%;
  transform: rotate(-15deg);
  pointer-events: none;
}

.hero-copy { max-width: 540px; }

.hero-eyebrow {
  display: inline-block;
  background: var(--pale);
  color: var(--burnt);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 { font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--dark); margin-bottom: 1.2rem; letter-spacing: -0.01em; }
.hero h1 span { color: var(--burnt); }

.hero-desc {
  font-size: 1.1rem;
  color: #7a5a3a;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  background: var(--amber);
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(254,166,46,0.3);
}

.btn-primary:hover {
  background: var(--burnt);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,120,59,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 100px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--pale);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover { border-color: var(--burnt); color: var(--burnt); transform: translateY(-2px); }

/* ─── SDLC WHEEL ─── */
.wheel-wrap { display: flex; justify-content: center; align-items: center; }

.wheel-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(45,20,0,0.1));
}

.stage-circle {
  fill: var(--cream);
  stroke: var(--pale);
  stroke-width: 3;
  transition: fill 0.3s, filter 0.3s;
}

.stage-label { font-family: 'Fredoka', sans-serif; font-weight: 600; }
.stage-sublabel { font-family: 'Inter', sans-serif; }

/* ─── DIVIDER ─── */
.paw-divider { text-align: center; font-size: 1.4rem; letter-spacing: 0.5rem; color: var(--pale); padding: 8px 0; }

/* ─── SECTION COMMON ─── */
section { padding: 100px 80px; }

.section-eyebrow {
  display: inline-block;
  background: var(--pale);
  color: var(--burnt);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title { font-size: clamp(2rem, 3vw, 2.8rem); color: var(--dark); margin-bottom: 0.75rem; }

.section-desc { font-size: 1rem; color: #7a5a3a; max-width: 560px; line-height: 1.7; margin-bottom: 3rem; }

/* ─── AI SHIFT ─── */
.ai-shift { background: var(--dark); color: var(--cream); text-align: center; padding: 80px; }
.ai-shift .section-eyebrow { background: rgba(254,166,46,0.15); color: var(--amber); }
.ai-shift .section-title { color: var(--cream); }
.ai-shift .section-desc { color: #a08060; max-width: 680px; margin: 0 auto 3rem; }

.ai-shift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 780px; margin: 0 auto 2.5rem; text-align: left; }

.ai-shift-col h4 { font-family: 'Fredoka', sans-serif; font-size: 1.1rem; color: var(--amber); margin-bottom: 1.25rem; }

.ai-bar { margin-bottom: 1rem; }

.ai-bar-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #a08060; margin-bottom: 0.4rem; }

.ai-bar-track { background: rgba(255,255,255,0.07); border-radius: 4px; height: 32px; overflow: hidden; }

.ai-bar-fill {
  height: 100%;
  background: rgba(254,166,46,0.35);
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
}

.ai-bar-fill--compressed { background: rgba(255,255,255,0.08); color: #5a4530; }

.ai-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 780px; margin: 0 auto 2.5rem; text-align: left; }

.ai-benefit { background: rgba(255,255,255,0.05); border: 1px solid rgba(254,166,46,0.15); border-radius: 12px; padding: 1.5rem; }

.ai-benefit-icon { display: block; font-size: 1.5rem; margin-bottom: 0.75rem; }

.ai-benefit strong { display: block; font-family: 'Fredoka', sans-serif; font-size: 1.05rem; color: var(--cream); margin-bottom: 0.5rem; }

.ai-benefit p { font-size: 0.85rem; line-height: 1.6; color: #a08060; margin: 0; }

.ai-shift-note { max-width: 680px; margin: 0 auto; font-size: 0.95rem; line-height: 1.75; color: #a08060; }
.ai-shift-note strong { color: var(--cream); }

/* ─── SERVICES ─── */
.services { background: var(--white); }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: var(--cream);
  border: 2px solid var(--pale);
  border-radius: 20px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.service-card:hover { border-color: var(--amber); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(254,166,46,0.15); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }

.service-step { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--burnt); margin-bottom: 0.4rem; }

.service-card h3 { font-size: 1.4rem; color: var(--dark); margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; color: #7a5a3a; line-height: 1.65; }

.service-tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 6px; }

.service-tag { font-size: 0.7rem; background: var(--pale); color: var(--burnt); padding: 3px 10px; border-radius: 100px; font-weight: 500; }

/* ─── EXPERIENCE / PROJECTS ─── */
.work { background: var(--cream); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.work-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--pale);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.work-card a:hover,
a.work-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(45,20,0,0.12); border-color: var(--amber); }

.work-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.work-card-thumb.auth     { background: linear-gradient(135deg, #1a1a2e, #2a1a4a); }
.work-card-thumb.budget   { background: linear-gradient(135deg, #1a2e20, #1a3a2a); }
.work-card-thumb.pet      { background: linear-gradient(135deg, #1a2e1a, #2a4a35); }
.work-card-thumb.workshop { background: linear-gradient(135deg, #1e1a2e, #2e2a4a); }
.work-card-thumb.spout    { background: linear-gradient(135deg, #2e1a1a, #4a2e2a); }

.work-thumb-label {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.label-inprogress { background: rgba(254,166,46,0.2); color: #FEA62E; }
.label-concept    { background: rgba(200,120,59,0.2); color: #C8783B; }

.work-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.work-card-body h3 { font-size: 1.25rem; color: var(--dark); margin-bottom: 0.5rem; }
.work-card-body p { font-size: 0.88rem; color: #7a5a3a; line-height: 1.6; flex: 1; }

.work-card-stack { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 6px; }

.stack-tag { font-size: 0.7rem; background: var(--cream); color: var(--burnt); padding: 3px 10px; border-radius: 100px; font-weight: 500; border: 1px solid var(--pale); }

/* ─── ABOUT ─── */
.about {
  background: #F5E6C4;
  color: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "ident  .     ."
    "photo  copy  visual"
    "stats  stats stats";
  column-gap: 60px;
  row-gap: 20px;
}

.about-ident { grid-area: ident; }
.about-photo { grid-area: photo; display: flex; flex-direction: column; }
.about-photo img { width: 100%; border-radius: 16px; object-fit: cover; flex: 1; min-height: 0; }

.about .section-title { color: var(--dark); }
.about .section-desc { color: #7a5a3a; max-width: 100%; margin-bottom: 0; }
.about-copy { grid-area: copy; display: flex; flex-direction: column; justify-content: center; }
.about-visual { grid-area: visual; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }

.about-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }

.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.about-point p { font-size: 0.92rem; color: #7a5a3a; line-height: 1.6; }
.about-point strong { color: var(--dark); }

.about-biscuit-card {
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--pale);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  width: 100%;
}

.about-biscuit-card img { width: 100%; height: auto; margin-bottom: 1rem; border-radius: 12px; }
.about-biscuit-card h4 { font-size: 1.3rem; color: var(--burnt); margin-bottom: 0.4rem; }
.about-biscuit-card p { font-size: 0.85rem; color: #7a5a3a; font-style: italic; }

.about-stats { grid-area: stats; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 1rem; }

.stat-card { background: rgba(255,255,255,0.7); border: 2px solid var(--pale); border-radius: 16px; padding: 20px; text-align: center; }

.stat-card .stat-num { font-family: 'Fredoka', sans-serif; font-size: 2rem; font-weight: 600; color: var(--burnt); line-height: 1; margin-bottom: 0.3rem; }

.stat-card .stat-label { font-size: 0.75rem; color: #7a5a3a; letter-spacing: 0.05em; }

/* ─── CONTACT ─── */
.contact { background: var(--white); text-align: center; }
.contact .section-desc { margin: 0 auto 2.5rem; }

.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; text-align: left; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--burnt); letter-spacing: 0.05em; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white);
  border: 2px solid var(--pale);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(254,166,46,0.12);
}

.form-group textarea { min-height: 140px; }
.contact-form .btn-primary { align-self: center; padding: 16px 48px; font-size: 1.1rem; }

.phone-input-group { display: flex; }
.phone-code-select {
  flex: 0 0 auto;
  width: 130px;
  border-radius: 12px 0 0 12px !important;
  border-right: none !important;
  cursor: pointer;
  font-size: 0.9rem !important;
}
.phone-number-input {
  flex: 1;
  border-radius: 0 12px 12px 0 !important;
  border-left: 1px solid var(--pale) !important;
}
.phone-input-group:focus-within .phone-code-select,
.phone-input-group:focus-within .phone-number-input {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(254,166,46,0.12);
}

/* ─── FOOTER ─── */
footer {
  background: var(--deepdark);
  color: #7a5a3a;
  padding: 48px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 48px; width: auto; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { text-decoration: none; color: #7a5a3a; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--amber); }
footer p { font-size: 0.8rem; }

/* ─── FLASH ─── */
.flash-notice { background: rgba(254,166,46,0.15); border: 1px solid var(--amber); color: var(--dark); text-align: center; padding: 12px 24px; font-size: 0.9rem; }
.flash-alert  { background: rgba(200,59,59,0.1); border: 1px solid #c83b3b; color: #c83b3b; text-align: center; padding: 12px 24px; font-size: 0.9rem; }

/* ─── RESPONSIVE ─── */

/* Tablet + mobile: nav, hero, layout */
@media (max-width: 900px) {
  nav {
    padding: 0 24px;
    position: relative;
  }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--pale);
    flex-direction: column;
    padding: 8px 24px 20px;
    gap: 0;
    list-style: none;
    box-shadow: 0 8px 32px rgba(45,20,0,0.1);
    z-index: 99;
  }

  .nav-links.is-open { display: flex; }

  .nav-links li { border-bottom: 1px solid rgba(234,188,128,0.4); }
  .nav-links li:last-child { border-bottom: none; padding-top: 8px; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1rem; }
  .nav-links .nav-cta { display: inline-block; margin-top: 4px; padding: 10px 24px !important; text-align: center; }

  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px;
    text-align: center;
    min-height: auto;
  }
  .hero-copy { max-width: 100%; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }

  section { padding: 60px 24px; }
  .ai-shift { padding: 60px 24px; }

  .ai-shift-grid { grid-template-columns: 1fr; }
  .ai-benefits { grid-template-columns: 1fr 1fr; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }

  .about {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "ident"
      "photo"
      "copy"
      "visual"
      "stats";
    padding: 60px 24px;
    gap: 24px;
  }
  .about-photo img { max-height: 320px; flex: none; object-fit: cover; object-position: center 20%; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  footer {
    padding: 40px 24px;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}

/* Small phones: single column, tighter spacing */
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .ai-benefits { grid-template-columns: 1fr; }

  .hero { padding: 40px 20px; }
  section { padding: 48px 20px; }
  .ai-shift { padding: 48px 20px; }

  .wheel-svg { max-width: 300px; }

  .phone-code-select { width: 105px !important; font-size: 0.82rem !important; }
}
