/* =====================================================
   styles.css — Best Budget Laptops India 2026
   Aesthetic: Editorial magazine meets tech review
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg: #f5f3ee;
  --bg-alt: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #5a5a5a;
  --accent: #d4410b;
  --accent-light: #f5e6df;
  --border: #ddd8cc;
  --card-shadow: 0 2px 20px rgba(0,0,0,0.07);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1160px;
  --radius: 10px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
p { color: var(--ink-muted); margin-bottom: 1rem; }
strong { color: var(--ink); font-weight: 600; }

/* ---- Layout Utility ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: #aaa; }
.section--dark h2 { color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: #b83508; border-color: #b83508; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,65,11,.3); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,243,238,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--ink);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink-muted);
  letter-spacing: .03em;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links .btn-primary { padding: .5rem 1.4rem; font-size: .85rem; color: #fff; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border: none; background: transparent; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links a { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-links .btn-primary { margin: 1rem 1.5rem; width: calc(100% - 3rem); text-align: center; border-radius: 4px; }
}

/* =====================================================
   HERO — HOME
   ===================================================== */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero p.lead { font-size: 1.1rem; margin-bottom: 2rem; color: var(--ink-muted); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transform: rotate(1.5deg);
  transition: transform .4s;
}
.hero-img:hover { transform: rotate(0deg) scale(1.02); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { transform: none; max-height: 300px; }
}

/* =====================================================
   FEATURE CARDS — HOME
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; margin-bottom: 0; }

/* =====================================================
   SECTION LABELS
   ===================================================== */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-title { margin-bottom: 1rem; }
.section-desc { color: var(--ink-muted); max-width: 600px; }

/* =====================================================
   LAPTOP CARDS — ARTICLE PAGE
   ===================================================== */
.laptop-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 320px 1fr;
  box-shadow: var(--card-shadow);
  transition: box-shadow .25s;
}
.laptop-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.12); }
.laptop-card-img { height: 100%; min-height: 220px; object-fit: cover; }
.laptop-card-body { padding: 2rem; }
.laptop-rank {
  font-size: 3rem;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: .5rem;
}
.laptop-price {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  padding: .3rem .8rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.laptop-specs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.spec-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 500;
  padding: .25rem .7rem;
  border-radius: 20px;
  color: var(--ink-muted);
}
.best-for { font-size: .85rem; color: var(--accent); font-weight: 600; }

@media (max-width: 800px) {
  .laptop-card { grid-template-columns: 1fr; }
  .laptop-card-img { height: 220px; width: 100%; }
}

/* =====================================================
   COMPARISON TABLE
   ===================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--bg-alt); }
thead { background: var(--ink); color: #fff; }
thead th { padding: 1rem 1.2rem; text-align: left; font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
tbody td { padding: .9rem 1.2rem; border-bottom: 1px solid var(--border); color: var(--ink-muted); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }
.table-highlight { color: var(--accent); font-weight: 600; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
}
.faq-question {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: .75rem; }
.faq-answer p { margin-bottom: 0; font-size: .95rem; }

/* =====================================================
   TIPS GRID
   ===================================================== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.tip-card {
  background: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tip-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: .4rem; }
.tip-card p { font-size: .88rem; margin-bottom: 0; }

/* =====================================================
   ARTICLE CONTENT
   ===================================================== */
.article-header { padding: 4rem 0 2rem; border-bottom: 1px solid var(--border); }
.article-meta { font-size: .85rem; color: var(--ink-muted); margin-top: 1rem; }
.article-meta span { margin-right: 1.5rem; }

.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 .75rem; }
.prose p { font-size: 1rem; line-height: 1.8; }
.prose ul { margin: 1rem 0 1rem 1.2rem; }
.prose ul li { list-style: disc; color: var(--ink-muted); margin-bottom: .4rem; }

/* Considerations grid */
.consider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.consider-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.consider-card .icon { font-size: 2rem; margin-bottom: .6rem; }
.consider-card h3 { font-size: .95rem; font-family: var(--font-body); font-weight: 700; margin-bottom: .3rem; }
.consider-card p { font-size: .83rem; margin-bottom: 0; }

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-hero { padding: 5rem 0 3rem; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; padding: 4rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.team-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1rem; }
.team-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: .2rem; }
.team-card p { font-size: .85rem; margin-bottom: 0; }
.values-list { margin: 1.5rem 0; }
.values-list li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.values-list li .check { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

@media (max-width: 768px) { .about-content { grid-template-columns: 1fr; } }

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: #111;
  color: #ccc;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #2a2a2a;
}
.footer-brand .nav-logo { color: #fff; font-size: 1.2rem; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: #888; line-height: 1.7; }
footer h4 { font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
footer ul li { margin-bottom: .6rem; }
footer ul li a { font-size: .88rem; color: #888; transition: color .2s; }
footer ul li a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .82rem; color: #555; margin-bottom: 0; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =====================================================
   UTILITY / MISC
   ===================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* Breadcrumb */
.breadcrumb { font-size: .83rem; color: var(--ink-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 .4rem; }

/* Callout box */
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
}
.callout p { color: var(--ink); margin-bottom: 0; font-size: .95rem; }

/* Scroll-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

