/* The Clark Group — Premium styles.css */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0b2e59;
  --color-primary-mid: #134b82;
  --color-primary-dark: #061a33;
  --color-accent: #1a8a5a;
  --color-accent-light: #22b872;
  --color-accent-dark: #14694a;
  --color-gold: #c9a84c;
  --color-gold-light: #dfc06a;
  --color-text: #1e2d3d;
  --color-text-light: #5a6d80;
  --color-text-muted: #8a96a3;
  --color-bg: #ffffff;
  --color-bg-alt: #f0f4f8;
  --color-bg-warm: #fafbfc;
  --color-bg-dark: #0a1628;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --font-heading: 'Georgia', 'Palatino Linotype', 'Times New Roman', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1240px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === UTILITY === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition), left var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

.nav-links a:hover,
.nav-links a.active {
  background: transparent;
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 480px;
  height: 70vh;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background-color: var(--color-primary-dark); /* fallback if image fails */
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('clarhero.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.45);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6,26,51,0.3) 0%,
    rgba(11,46,89,0.15) 40%,
    rgba(11,46,89,0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 0 32px;
  transform: translateY(58px);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  letter-spacing: -0.01em;
}

.hero-content p {
  font-size: clamp(0.92rem, 1.35vw, 1.05rem);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
  opacity: 0.78;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* Hide hero CTAs site-wide (intentional) */
.hero .btn-group {
  display: none;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
  transition: opacity var(--transition);
}

.btn:hover::before {
  opacity: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,138,90,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  box-shadow: 0 8px 24px rgba(26,138,90,0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,255,255,0.15);
}

.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === SECTIONS === */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
  position: relative;
}

.section-alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.section-dark {
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0d1f35 100%);
  color: rgba(255,255,255,0.85);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent), var(--color-gold));
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-dark .section-title h2 {
  color: #fff;
}

.section-dark .section-title h2::after {
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-gold));
}

.section-title p {
  color: var(--color-text-light);
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-dark .section-title p {
  color: rgba(255,255,255,0.65);
}

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card .icon {
  font-size: 2.2rem;
  margin-bottom: 18px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11,46,89,0.06), rgba(26,138,90,0.06));
  border-radius: var(--radius-md);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  letter-spacing: -0.005em;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* === ABOUT === */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  letter-spacing: -0.005em;
}

.about-text p {
  margin-bottom: 18px;
  color: var(--color-text-light);
  line-height: 1.75;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  text-align: center;
  padding: 40px 0;
  position: relative;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  line-height: 1.2;
}

.stat-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* === CTA BANNER === */
.cta-banner {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-mid) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(26,138,90,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(201,168,76,0.1) 0%, transparent 60%);
}

.cta-banner > * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}

.contact-detail {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11,46,89,0.06), rgba(26,138,90,0.06));
  border-radius: var(--radius-md);
}

.contact-detail strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
  font-weight: 600;
}

.contact-detail span {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  background: var(--color-bg-warm);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(26,138,90,0.1);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-submit {
  text-align: right;
  margin-top: 8px;
}

/* === FOOTER === */
.footer {
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, #061220 100%);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 28px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-gold), var(--color-accent), var(--color-primary));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 20px;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.footer p, .footer li {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul li a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition), padding-left var(--transition);
}

.footer ul li a:hover {
  color: var(--color-gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* === MAP === */
.map-embed {
  margin-top: 56px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE: TABLET === */
@media (max-width: 900px) {
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .container {
    padding: 0 24px;
  }
}

/* === RESPONSIVE: MOBILE === */
@media (max-width: 700px) {
  .navbar .container {
    height: 96px;
  }

  .nav-logo img {
    height: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 96px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--color-border-light);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  /* Hero — single consolidated mobile rule */
  .hero {
    height: auto;
    min-height: 430px;
    max-height: none;
    padding: 52px 0 56px;
  }

  .hero-content {
    padding: 0 24px;
    transform: translateY(38px);
  }

  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .hero-content p {
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 310px;
    opacity: 0.78;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: min(335px, 88vw);
    text-align: center;
    padding: 16px 24px;
  }

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

  .section {
    padding: 56px 0;
  }
}

