/* ============================================================
   MYSK TurfTech — style.css
   ============================================================ */


/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --navy:        #0b1a2e;
  --navy-mid:    #112240;
  --navy-light:  #1a3358;
  --ivory:       #f7f4ef;
  --ivory-dark:  #ede9e1;
  --gold:        #b8932a;
  --gold-light:  #d4ac4e;
  --white:       #ffffff;
  --text-dark:   #0b1a2e;
  --text-body:   #2d3e50;
  --text-muted:  #6b7c93;
  --text-light:  #c8d4e0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;

  --section-pad:  100px;
  --container:    1200px;
  --radius:       4px;
  --radius-lg:    10px;

  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:   0.3s var(--ease);
}


/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--ivory); line-height: 1.7; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }


/* ── UTILITY ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.section-pad  { padding: var(--section-pad) 0; }
.centered     { text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-header.centered .section-title { max-width: 560px; margin-left: auto; margin-right: auto; }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 60px;
  line-height: 1.8;
}


/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,147,42,0.35); }
.btn-ghost   { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }
.btn-full    { width: 100%; justify-content: center; }


/* ── NAVIGATION ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.transparent { background: transparent; }
#navbar.scrolled    { background: var(--navy); box-shadow: 0 2px 24px rgba(0,0,0,0.25); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
}

.nav-logo   { display: flex; align-items: center; gap: 10px; }
.logo-mark  { width: 36px; height: 36px; background: var(--gold); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; border-radius: 4px; flex-shrink: 0; }
.logo-text  { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--white); letter-spacing: 0.03em; }

.nav-links  { display: flex; align-items: center; gap: 8px; }
.nav-link   { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.8); padding: 8px 16px; border-radius: var(--radius); transition: color var(--transition), background var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-link.nav-cta       { background: var(--gold); color: var(--white); padding: 10px 22px; }
.nav-link.nav-cta:hover { background: var(--gold-light); }

.hamburger       { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span  { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu      { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.mobile-menu.open { max-height: 300px; }
.mobile-menu ul   { padding: 12px 32px 20px; }
.mob-link         { display: block; padding: 12px 0; font-size: 1rem; color: rgba(255,255,255,0.75); border-bottom: 1px solid rgba(255,255,255,0.08); transition: color var(--transition); }
.mob-link:last-child { border-bottom: none; }
.mob-link:hover   { color: var(--gold-light); }


/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,26,46,0.72) 0%, rgba(11,26,46,0.55) 50%, rgba(11,26,46,0.80) 100%);
}
.hero-overlay::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 120px;
  background: linear-gradient(to bottom right, transparent 49.9%, var(--ivory) 50%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px; padding: 0 24px;
  animation: heroFadeUp 1.1s var(--ease) both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow  { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; animation: heroFadeUp 1.1s 0.1s var(--ease) both; }
.hero-title    { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 300; color: var(--white); line-height: 1.05; margin-bottom: 20px; animation: heroFadeUp 1.1s 0.2s var(--ease) both; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 300; color: rgba(255,255,255,0.78); margin-bottom: 44px; line-height: 1.6; animation: heroFadeUp 1.1s 0.3s var(--ease) both; }
.hero-actions  { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: heroFadeUp 1.1s 0.4s var(--ease) both; }
.hero-scroll   { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: heroFadeUp 1.2s 0.7s var(--ease) both; }
.scroll-label  { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.scroll-arrow  { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}


/* ── ABOUT ─────────────────────────────────────────────────── */
.about { background: var(--ivory); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-image-wrap { position: relative; }
.about-image-wrap::before {
  content: ''; position: absolute;
  top: -16px; left: -16px;
  width: 60%; height: 60%;
  border: 2px solid var(--gold); border-radius: var(--radius-lg);
  z-index: -1; opacity: 0.6;
}

.about-img    { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius-lg); background: var(--navy-mid); }

.about-badge  { position: absolute; bottom: -24px; right: -24px; width: 110px; height: 110px; background: var(--navy); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 8px 32px rgba(0,0,0,0.22); }
.badge-number { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--gold); line-height: 1; }
.badge-text   { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); line-height: 1.3; margin-top: 4px; }

.about-lead   { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--navy); line-height: 1.55; margin-bottom: 18px; }
.about-body   { font-size: 0.97rem; color: var(--text-body); line-height: 1.85; margin-bottom: 16px; }

.about-stats  { display: flex; gap: 36px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--ivory-dark); }
.stat-num     { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: var(--navy); line-height: 1; }
.stat-label   { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-top: 5px; }


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

.service-categories { display: flex; flex-direction: column; gap: 72px; }

/* Category header */
.service-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(11,26,46,0.1);
}
.cat-icon  { font-size: 1.8rem; line-height: 1; flex-shrink: 0; margin-top: 4px; }
.cat-title { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 6px; }
.cat-desc  { font-size: 0.95rem; color: var(--text-muted); }

/*
  ============================================================
  SERVICE CARDS GRID
  auto-fit means:
    1 card  → full width
    2 cards → 2 columns
    3 cards → 3 columns
  ============================================================
*/
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ── SINGLE CARD FULL-WIDTH RULES ──────────────────────────
   Three separate rules to guarantee full width — belt,
   suspenders, and a safety pin. All three together are
   completely bulletproof across all browsers.
   ─────────────────────────────────────────────────────── */

/* Rule 1: force the card to span every column track */
.service-card:only-child {
  grid-column: 1 / -1;
  width: 100%;
}

/* Rule 2: make the image much taller when card is full-width */
.service-card:only-child .card-img-wrap {
  height: 480px;
}

/* Rule 3: override the grid to single column when only 1 card */
.service-cards:has(> .service-card:only-child) {
  grid-template-columns: 1fr;
}


/* Individual card */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(11,26,46,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(11,26,46,0.13); }

/* Card image wrapper */
.card-img-wrap {
  height: 220px;       /* default height for 2–3 cards per row */
  overflow: hidden;
  background: var(--navy-mid);
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .card-img-wrap img { transform: scale(1.05); }

/* Card text */
.card-body   { padding: 24px 26px 28px; }
.card-body h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; line-height: 1.25; }
.card-body p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }


/* ── CONTACT ───────────────────────────────────────────────── */
.contact { background: var(--navy); }
.contact .section-tag   { color: var(--gold-light); }
.contact .section-title { color: var(--white); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: start; }

.contact-body   { font-size: 1rem; color: var(--text-light); line-height: 1.85; margin-bottom: 40px; }
.contact-detail { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.contact-icon   { font-size: 1.1rem; width: 40px; height: 40px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.contact-label  { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-email  { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-light); transition: color var(--transition); }
.contact-email:hover { color: var(--white); }
.contact-value  { font-size: 0.97rem; color: var(--text-light); }

.contact-form-wrap { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: 44px; }

.form-group       { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 8px; }
.optional         { font-size: 0.72rem; font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--white); font-size: 0.97rem; outline: none;
  transition: border-color var(--transition), background var(--transition);
  -webkit-appearance: none; appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c8d4e0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form-group select option { background: var(--navy-mid); color: var(--white); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(200,212,224,0.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: rgba(255,255,255,0.09); }
.form-group textarea { resize: vertical; min-height: 110px; }

#submit-btn  { margin-top: 8px; }
.form-note   { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 14px; }
.form-feedback { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; text-align: center; }
.form-feedback.success { background: rgba(72,187,120,0.12); border: 1px solid rgba(72,187,120,0.3); color: #6ee7b7; }
.form-feedback.error   { background: rgba(220,53,69,0.1);   border: 1px solid rgba(220,53,69,0.3);  color: #f87171; }


/* ── FOOTER ────────────────────────────────────────────────── */
.footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.07); padding: 56px 0 28px; }

.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 28px; }

.footer-logo .logo-text { color: var(--white); }
.footer-tagline { font-size: 0.88rem; color: var(--text-muted); margin-top: 12px; line-height: 1.6; max-width: 280px; }

.footer-links .footer-label,
.footer-contact .footer-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; display: block; }

.footer-links ul li         { margin-bottom: 10px; }
.footer-links ul li a       { font-size: 0.92rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--gold-light); }
.footer-email       { font-family: var(--font-display); font-size: 1rem; color: var(--gold-light); transition: color var(--transition); display: block; }
.footer-email:hover { color: var(--white); }
.footer-bottom p    { font-size: 0.8rem; color: var(--text-muted); text-align: center; }


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


/* ── RESPONSIVE: TABLET 1024px ────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .about-grid     { grid-template-columns: 1fr; gap: 52px; }
  .about-image-wrap { max-width: 560px; margin: 0 auto; }
  .contact-grid   { grid-template-columns: 1fr; gap: 52px; }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
}

/* ── RESPONSIVE: MOBILE 768px ─────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-inner { height: 64px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-overlay::after { display: none; }

  .about-badge  { right: 12px; bottom: -16px; width: 90px; height: 90px; }
  .badge-number { font-size: 1.6rem; }
  .about-stats  { flex-wrap: wrap; gap: 24px; }

  .service-cat-header { flex-wrap: wrap; }
  .service-cards { grid-template-columns: 1fr; }

  /* Single card on mobile — keep image tall */
  .service-card:only-child .card-img-wrap { height: 260px; }

  .contact-form-wrap { padding: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 1.9rem; }
  .about-image-wrap::before { display: none; }
}
