/* ============================================================
   MASON VIRTUAL SOLUTIONS  |  styles.css
   ------------------------------------------------------------
   QUICK EDIT GUIDE
   - Change colours, fonts, and spacing in the :root block below.
   - Everything else inherits from those variables.
   ============================================================ */

/* ----------  THEME VARIABLES (edit these)  ---------- */
:root {
  /* Brand colours */
  --ink: #19251f;          /* main text, deep evergreen-charcoal */
  --ink-soft: #4c5a52;     /* softer body text */
  --brand: #1f3d34;        /* primary brand green (buttons, headings) */
  --brand-dark: #15291f;   /* darker green for hovers/footer */
  --accent: #c0863d;       /* warm amber accent */
  --accent-soft: #e8d4b3;  /* light amber for highlights */

  /* Backgrounds */
  --bg: #f7f3ec;           /* warm ivory page background */
  --bg-alt: #efe9df;       /* alternating section background */
  --card: #ffffff;         /* card surfaces */

  /* Borders + shadows */
  --line: #e3dccf;
  --shadow-sm: 0 4px 14px rgba(25, 37, 31, 0.06);
  --shadow-md: 0 14px 40px rgba(25, 37, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(25, 37, 31, 0.14);

  /* Fonts */
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Shape + rhythm */
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --section-pad: 110px;
}

/* ----------  RESET + BASE  ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p  { color: var(--ink-soft); }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* Eyebrow label above headings */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ----------  BUTTONS  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ----------  HEADER  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.logo { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s ease; }
.nav a:hover { color: var(--brand); }
.header-cta { padding: 11px 22px; }

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide-down nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-nav.open { max-height: 460px; padding: 14px 24px 26px; border-bottom-color: var(--line); }
.mobile-nav a { padding: 11px 0; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-cta { margin-top: 14px; }

/* ----------  HERO  ---------- */
.hero { padding: clamp(60px, 8vw, 110px) 0 clamp(70px, 9vw, 120px); position: relative; }
.hero::before {
  /* soft decorative glow behind the hero */
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 540px; height: 540px;
  background: radial-gradient(circle, rgba(192,134,61,0.18), transparent 70%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 22px; }
.hero-sub { font-size: 1.15rem; max-width: 520px; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-size: 0.9rem; color: var(--ink-soft); }

/* Browser mockup card */
.browser-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(0.6deg);
  border: 1px solid var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #cdbfa8; }
.browser-bar .dot:nth-child(2) { background: #ddca9f; }
.browser-bar .dot:nth-child(3) { background: #c6b08a; }
.browser-url { margin-left: 12px; font-size: 0.82rem; color: var(--ink-soft); background: var(--card); padding: 4px 14px; border-radius: 100px; border: 1px solid var(--line); }
.browser-body { padding: 30px 30px 34px; }
.mockup-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; margin-bottom: 18px; }
.industry-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.industry-list li { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); padding: 14px 18px; background: var(--bg); border-radius: 14px; border: 1px solid var(--line); }
.industry-icon { font-size: 1.3rem; }
.mockup-cta { display: block; text-align: center; background: var(--brand); color: #fff; font-weight: 600; padding: 13px; border-radius: 12px; text-decoration: none; cursor: pointer; transition: opacity 0.15s ease; }
.mockup-cta:hover { opacity: 0.9; }

/* ----------  SECTION BASE  ---------- */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-intro { font-size: 1.08rem; margin-top: 16px; }

/* ----------  TRUST / BENEFITS  ---------- */
.trust { padding: 70px 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit-icon { font-size: 1.9rem; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.benefit-card p { font-size: 0.96rem; }

/* ----------  SERVICES  ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.service-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.service-no { font-family: var(--font-head); font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.service-item h3 { font-size: 1.12rem; margin: 14px 0 10px; }
.service-item p { font-size: 0.94rem; }

/* ----------  PORTFOLIO  ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.portfolio-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 34px; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.portfolio-tag { display: inline-block; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 13px; border-radius: 100px; margin-bottom: 18px; }
.portfolio-card h3 { font-size: 1.55rem; }
.portfolio-industry { display: block; font-size: 0.9rem; font-weight: 600; color: var(--brand); margin: 6px 0 14px; }
.portfolio-card p { margin-bottom: 18px; }
.feature-list { margin-bottom: 26px; }
.feature-list li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 0.95rem; color: var(--ink-soft); }
.feature-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ----------  PRICING  ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 34px; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pricing-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 18px; border-radius: 100px; white-space: nowrap; }
.plan-name { font-size: 1.4rem; margin-bottom: 6px; }
.plan-best { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 20px; }
.plan-price { font-family: var(--font-head); margin-bottom: 4px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 600; color: var(--brand); }
.plan-price .cur { font-size: 0.95rem; color: var(--ink-soft); font-family: var(--font-body); }
.plan-sub { font-size: 0.9rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.plan-features { margin: 24px 0 30px; flex-grow: 1; }
.plan-features li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 0.96rem; color: var(--ink-soft); }
.plan-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan-btn { width: 100%; }
.pricing-note { text-align: center; margin-top: 36px; font-size: 0.98rem; color: var(--ink-soft); }

/* ----------  PROCESS  ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding: 36px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; }
.process-step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.process-step p { font-size: 0.94rem; }

/* ----------  WHY CHOOSE ME  ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-copy h2 { margin-bottom: 20px; }
.why-copy p { font-size: 1.06rem; margin-bottom: 28px; }
.why-points { display: grid; gap: 16px; }
.why-points li { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 20px 24px; box-shadow: var(--shadow-sm); }
.why-points strong { font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; color: var(--ink); }
.why-points span { font-size: 0.94rem; color: var(--ink-soft); }

/* ----------  FAQ  ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; padding: 22px 26px; background: none; border: 0; cursor: pointer; font-family: var(--font-head); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.faq-icon { font-size: 1.5rem; color: var(--accent); transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding: 0 26px 24px; font-size: 0.98rem; }

/* ----------  CONTACT FORM  ---------- */
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,61,52,0.12); }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #c0533d; }
.error-msg { display: block; font-size: 0.84rem; color: #c0533d; margin-top: 6px; min-height: 1em; }
.form-success { margin-top: 20px; padding: 16px 20px; background: var(--accent-soft); border-radius: 12px; color: var(--brand-dark); font-weight: 600; text-align: center; }

/* ----------  FOOTER  ---------- */
.site-footer { background: var(--brand-dark); color: #d8e0da; padding-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 44px; }
.footer-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: #fff; display: block; margin-bottom: 12px; }
.footer-brand p { color: #aebcb2; margin-bottom: 14px; max-width: 320px; }
.footer-email { color: var(--accent-soft); font-weight: 600; }
.footer-email:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #c6d0c8; font-size: 0.96rem; transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; }
.footer-bottom p { color: #93a299; font-size: 0.88rem; }

/* ----------  SCROLL REVEAL ANIMATION  ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE  |  Tablet and mobile breakpoints
   ============================================================ */

/* Tablet */
@media (max-width: 980px) {
  :root { --section-pad: 80px; }
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-mockup { max-width: 460px; }

  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pricing-card.featured { order: -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 18px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-buttons .btn { flex: 1; }
  .contact-form { padding: 28px 22px; }
  .portfolio-card, .pricing-card { padding: 30px 26px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
