/* ============================================================
   SEO.COM.MY — single stylesheet
   Colors follow the logo: orange + golden yellow on navy/white.
   Edit colors here once; whole site follows.
   ============================================================ */
:root {
  --navy: #0b1f3a;
  --navy-2: #12294a;
  --accent: #f7941d;        /* logo orange (primary accent) */
  --accent-dark: #d97a06;   /* darker logo orange (hover / links) */
  --gold: #ffb527;          /* logo golden yellow (accent on dark bg) */
  --accent-soft: #fef3e2;   /* light orange tint (icon bg, hovers) */
  --ink: #1c2534;
  --ink-soft: #4a566b;
  --line: #e4e9f1;
  --bg-soft: #e8edf5;   /* alternating section bg — clearly distinct from white */
  --bg-warm: #f9f2e7;   /* FAQ section bg — warm tint, distinct from both */
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 31, 58, .08);
  --container: 1160px;
  --font: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); line-height: 1.65; background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin-bottom: .6em; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4em; }
p  { margin-bottom: 1em; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-soft); }
.section-head.wide { max-width: 900px; }
.section-head.wide p { text-align: left; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 8px; font-weight: 600; font-size: .95rem; transition: .18s ease; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* --- Header / nav --- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; font-weight: 800; font-size: 1.3rem; color: var(--navy); }
.logo img { height: 40px; width: auto; }
.logo-mark { color: var(--accent); }
.logo-text { color: var(--navy); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .93rem; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-dark); }
.main-nav .nav-cta { color: #fff; padding: 9px 18px; }
.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown > a .caret { font-size: .7em; color: var(--ink-soft); }
.dropdown { position: absolute; top: 100%; left: -14px; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 120; }
.nav-item.has-dropdown:hover .dropdown, .nav-item.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: .9rem; }
.dropdown a:hover { background: var(--accent-soft); }
.dropdown-divider { border-top: 1px solid var(--line); margin: 6px 4px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; transition: .2s; }

/* --- Hero (full-width slideshow) --- */
.hero { position: relative; color: #fff; padding: 120px 0 100px; overflow: hidden; min-height: 520px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity .9s ease; }
.hero-bg.active { opacity: 1; }
.slide-stack { display: grid; }
.hero-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .7s ease, transform .7s ease, visibility .7s; }
.hero-slide.active { opacity: 1; visibility: visible; transform: none; }
.slide-h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-bottom: 18px; }
.slide-h1 em { font-style: normal; color: var(--gold); }
.hero-dots { display: flex; gap: 9px; margin-top: 30px; }
.hero-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: .2s; }
.hero-dots .dot.active { background: var(--gold); width: 26px; border-radius: 99px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(11,31,58,.92) 0%, rgba(11,31,58,.78) 45%, rgba(11,31,58,.35) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-content > div { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.08rem; color: #dbe5f3; margin-bottom: 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-trust .stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.hero-trust .stat span { font-size: .82rem; color: #c3d0e4; }

/* --- Cards / grids --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .18s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon { width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; margin-bottom: 16px; }
.card p { color: var(--ink-soft); font-size: .93rem; margin-bottom: 12px; }
.card .more { font-weight: 600; font-size: .9rem; }
.card-clickable { cursor: pointer; }
.card-clickable h3 { transition: color .15s ease; }
.card-clickable:hover h3 { color: var(--accent-dark); }

/* --- AI band --- */
.ai-band { background: var(--navy); color: #fff; }
.ai-band h2 { color: #fff; }
.ai-band .section-head p { color: #c9d6ea; }
.ai-band .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.ai-band .card h3 { color: #fff; }
.ai-band .card p { color: #b7c6dd; }
.ai-band .card .icon { background: rgba(255,181,39,.15); color: var(--gold); }
.ai-band .badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }

/* --- Results strip --- */
.results-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.result-card strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--accent); }
.result-card span { font-size: .85rem; color: var(--ink-soft); }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; background: var(--accent); color: #fff; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.step p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* --- Link chips (locations / industries) --- */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 16px; font-size: .87rem; font-weight: 500; color: var(--ink); }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip-list-center { justify-content: center; max-width: 860px; margin: 0 auto; }
.chip-more { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.chip-more:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- FAQ (grey band, accordion in a white card) --- */
.faq-section { background: var(--bg-soft); border-top: 1px solid #d8dfeb; }
.faq-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; box-shadow: var(--shadow); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); transition: .2s; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 0 18px; color: var(--ink-soft); }

/* --- CTA band (parallax) --- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(247,148,29,.93) 0%, rgba(198,111,4,.93) 100%),
    url('../img/slideshow.jpg') center / cover no-repeat;
  background-attachment: fixed, fixed; /* parallax effect */
  color: #fff;
  padding: 80px 0;
}
@media (max-width: 1024px) {
  /* mobile browsers (iOS Safari etc.) don't support fixed attachment — graceful fallback */
  .cta-band { background-attachment: scroll, scroll; }
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #fff3e0; max-width: 560px; margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Footer --- */
.site-footer { background: var(--navy); color: #b7c6dd; padding: 64px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-logo .logo-mark { color: var(--gold); }
.footer-col h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #b7c6dd; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px; text-align: center; font-size: .8rem; color: #8fa2bd; }
.footer-bottom a { color: #8fa2bd; }

/* --- WhatsApp float --- */
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 90; transition: .18s; }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* --- Page hero (inner pages) --- */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #14335c 100%); color: #fff; padding: 72px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero .lead { color: #dbe5f3; max-width: 760px; font-size: 1.05rem; margin: 0; }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-card .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 14px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.price-card h3 { font-size: 1.05rem; }
.price-card h3 small { color: var(--accent-dark); font-size: .8em; }
.price-card .price { margin: 6px 0 2px; color: var(--ink-soft); font-size: .9rem; }
.price-card .price span { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.price-card .price-for { font-size: .82rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.price-card ul { list-style: none; margin: 0 0 20px; flex: 1; }
.price-card li { font-size: .85rem; padding: 6px 0 6px 22px; position: relative; color: var(--ink-soft); }
.price-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { text-align: center; }

/* --- Check / cross lists --- */
.check-list, .cross-list { list-style: none; margin: 0 0 1em; }
.check-list li, .cross-list li { padding: 7px 0 7px 28px; position: relative; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: #1a9e6e; font-weight: 700; }
.cross-list li::before { content: "\2715"; position: absolute; left: 0; color: #c0392b; font-weight: 700; }

@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

/* --- Forms --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: .95rem; background: #fff; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-note { font-size: .8rem; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.check-row { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.check-row label { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: .92rem; cursor: pointer; }
.check-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Content page helpers --- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; }
.stat-inline { display: flex; gap: 30px; flex-wrap: wrap; margin: 24px 0; }
.stat-inline .stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-inline .stat span { font-size: .83rem; color: var(--ink-soft); }
.cs-meta { display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0 26px; font-size: .9rem; color: var(--ink-soft); }
.cs-meta strong { color: var(--ink); display: block; }

/* --- Card thumbnails --- */
.card-thumb { margin: -26px -26px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; height: 160px; background: #e2e8f2; }
.card-thumb img, .card-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb-pie { background: #fff; border-bottom: 1px solid var(--line); }
.card-thumb-pie img { object-fit: contain; }

/* --- Image placeholder --- */
.img-ph { margin: 26px 0; }
.img-ph svg, .img-ph img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* --- Footer social --- */
.footer-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #b7c6dd; transition: .18s; }
.footer-social a:hover { color: #fff; background: #1877f2; border-color: #1877f2; }

/* --- Footnote --- */
.footnote { font-size: .78rem; color: #93a1b5; text-align: center; margin: 28px auto 0; max-width: 720px; }
.footnote a { color: #93a1b5; text-decoration: underline; }

/* --- Blog / article --- */
.article-body { max-width: 780px; margin: 0 auto; }
.article-body h2 { margin-top: 1.6em; }
.article-body ul, .article-body ol { margin: 0 0 1em 1.4em; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero { padding: 80px 0 64px; min-height: 440px; }
  .grid-3, .results-strip, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: .25s ease; box-shadow: var(--shadow); }
  .main-nav.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  /* mobile: dropdown shown inline, indented */
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav-item.has-dropdown { width: 100%; }
  .grid-2, .grid-3, .results-strip, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
