/* ================================
   My Chef Assistant - styles.css
   Full file replacement
   ================================ */

/* --- Reset / Base --- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

:root{
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --bg-3: #eef4ff;

  --ink: #12305f;
  --text: #1f2f46;
  --muted: #5d6c82;

  --border: rgba(18, 48, 95, .10);
  --shadow: 0 18px 45px rgba(18, 48, 95, .12);
  --shadow-soft: 0 10px 24px rgba(18, 48, 95, .08);

  --blue: #114ebd;
  --blue-dark: #0c3f9c;
  --blue-soft: #dfeaff;

  --gold: #f4c400;
  --gold-dark: #d9ae00;
  --gold-soft: #fff6cc;

  --white: #ffffff;

  --radius: 20px;
  --radius-sm: 14px;
  --btn-radius: 999px;

  --max: 1120px;
}

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
  color: var(--text);
  line-height: 1.5;
}

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

.container{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* --- Accessibility --- */
.skip-link{
  position: absolute;
  left: -9999px;
  top: -9999px;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 9999;
}

/* --- Header --- */
.site-header{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}

.brand-logo{
  height: 120px;
  width: auto;
  max-width: 560px;
}

.top-nav{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}

.top-nav a{
  font-weight: 700;
  color: var(--muted);
  transition: color .18s ease, transform .18s ease;
}

.top-nav a:hover{
  color: var(--blue);
  transform: translateY(-1px);
}

.nav-cta{
  background: var(--gold);
  border: 1px solid rgba(217, 174, 0, .35);
  color: var(--blue-dark);
  padding: 11px 18px;
  border-radius: var(--btn-radius);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(244, 196, 0, .22);
}

.nav-cta:hover{
  background: var(--gold-dark);
  color: var(--blue-dark);
}

/* --- Hero --- */
.hero{
  padding: 52px 0 34px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1{
  margin: 0 0 14px;
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
  max-width: 11ch;
}

.hero-copy p{
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 60ch;
}

.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border-radius: var(--btn-radius);
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover{
  transform: translateY(-1px);
}

.btn-primary{
  background: var(--blue);
  color: #fff;
  border-color: rgba(17, 78, 189, .18);
  box-shadow: 0 12px 24px rgba(17, 78, 189, .22);
}

.btn-primary:hover{
  background: var(--blue-dark);
}

.btn-secondary{
  background: #fff;
  border-color: rgba(17, 78, 189, .16);
  color: var(--blue);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover{
  background: var(--blue-soft);
}

.micro{
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.hero-art{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image{
  width: 100%;
  max-width: 520px;
  height: auto;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 auto;
}

/* --- Sections --- */
.section{
  padding: 64px 0;
}

.section.alt{
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2{
  margin: 0 0 12px;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
}

.section-text{
  margin: 0 0 30px;
  color: var(--muted);
  max-width: 70ch;
  font-size: 18px;
}

/* --- Cards --- */
.cards{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(17, 78, 189, .10);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(17, 78, 189, .12);
  border-color: rgba(17, 78, 189, .18);
}

.card-media{
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--gold-soft) 0%, #fff8da 100%);
  border: 1px solid rgba(244, 196, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
}

.card img{
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
}

.card h3{
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--blue-dark);
}

.card p{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* --- Simple content section --- */
.section-centered{
  text-align: center;
}

.section-centered .section-text{
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer{
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: #fff;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  flex-wrap: wrap;
}

.footer-links{
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-links a{
  color: var(--muted);
}

.footer-links a:hover{
  color: var(--blue);
}

/* --- Page Helpers --- */
.page{
  padding: 42px 0 60px;
}

.page h1{
  margin: 0 0 14px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
}

.page p{
  color: var(--muted);
  font-size: 18px;
}

.page ul{
  color: var(--muted);
  padding-left: 20px;
}

.page li{
  margin-bottom: 10px;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 980px){
  .brand-logo{
    height: 82px;
  }

  .hero-grid{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy{
    text-align: center;
  }

  .hero-copy h1{
    max-width: none;
  }

  .hero-copy p{
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions{
    justify-content: center;
  }

  .cards{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px){
  .container{
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header{
    position: relative;
  }

  .header-inner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0 12px;
    text-align: center;
  }

  .brand{
    min-width: 0;
    justify-content: center;
  }

  .brand-logo{
    height: 72px;
    max-width: 92vw;
  }

  .top-nav{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 16px;
  }

  .nav-cta{
    padding: 12px 18px;
  }

  .hero{
    padding: 26px 0 24px;
  }

  .hero-copy p{
    font-size: 17px;
  }

  .btn{
    width: 100%;
    justify-content: center;
    padding: 16px 18px;
  }

  .hero-actions{
    gap: 10px;
  }

  .hero-image{
    max-width: 440px;
  }

  .section{
    padding: 52px 0;
  }

  .cards{
    grid-template-columns: 1fr;
  }

  .card{
    padding: 22px;
  }

  .footer-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links{
    justify-content: center;
  }
}

@media (max-width: 390px){
  .brand-logo{
    height: 66px;
  }

  .hero-copy h1{
    font-size: 40px;
  }
}