/* =========================================================
   ANT Enterprise — main stylesheet
   ========================================================= */

:root {
  --color-green-dark: #1f3d28;
  --color-green: #21422e;
  --color-green-light: #2e5a3d;
  --color-gold: #c8a14a;
  --color-gold-light: #dcc07f;
  --color-cream: #f7f5ef;
  --color-white: #ffffff;
  --color-text: #262a26;
  --color-text-muted: #5b615b;
  --color-border: #e3e1d8;

  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 30, 20, 0.12);
  --transition: 0.2s ease;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; margin: 0 0 0.5em; color: var(--color-green-dark); }
p { margin: 0 0 1em; }
button { font-family: inherit; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-green-dark);
  color: var(--color-white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 2px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-green-dark);
}
.btn-primary:hover { background: var(--color-gold-light); }
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--color-green-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.brand strong { color: var(--color-gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  margin: 6px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.main-nav ul {
  display: flex;
  gap: 8px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-gold-light);
  background: rgba(255,255,255,0.06);
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-green-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    padding: 8px 24px 20px;
    gap: 2px;
  }
  .main-nav a { padding: 12px 8px; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  color: var(--color-white);
  background: var(--color-green-dark);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,32,22,0.55) 0%, rgba(20,32,22,0.72) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 150px 24px 120px;
  max-width: 760px;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 0.6em;
}
.hero p.lede {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  max-width: 46ch;
  margin-bottom: 1.8em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  padding: 90px 24px 60px;
  text-align: center;
}
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold-light);
  font-size: 0.8rem;
  margin-bottom: 12px;
  display: block;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 0.3em; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto; }

/* -------------------- Sections -------------------- */
section { padding: 84px 0; }
.section-cream { background: var(--color-cream); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-header p { color: var(--color-text-muted); }

/* -------------------- Services grid -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-num {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 14px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.service-card p { color: var(--color-text-muted); margin-bottom: 0; font-size: 0.98rem; }

/* -------------------- Feature grid (Why choose us) -------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  text-align: center;
  padding: 10px;
}
.feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5em; }
.feature-card p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 0; }

/* -------------------- Gallery strip -------------------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-strip img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
@media (max-width: 780px) {
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-strip img { height: 220px; }
}

/* -------------------- Contact -------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
}
.contact-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }

.contact-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--color-text-muted);
}
.contact-details a { color: var(--color-green); font-weight: 600; }

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--color-cream);
  transition: border-color var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.field textarea { resize: vertical; min-height: 130px; }
.required { color: #a5432f; }
.form-note { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 14px; }
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.success { background: #e6f0e8; color: var(--color-green-dark); }
.form-status.error { background: #f7e4e0; color: #7a2c1c; }
.hp-field { position: absolute; left: -9999px; }

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--color-green-dark);
  color: var(--color-white);
  text-align: center;
}
.cta-band h2 { color: var(--color-white); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 28px; }

/* -------------------- Certificate page -------------------- */
.certificate-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.certificate-wrap img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.certificate-meta {
  text-align: left;
  background: var(--color-cream);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 8px;
}
.certificate-meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}
.certificate-meta dt { font-weight: 700; color: var(--color-green-dark); }
.certificate-meta dd { margin: 0; color: var(--color-text-muted); }

/* -------------------- Legal / Privacy content -------------------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  margin-top: 2em;
  font-size: 1.3rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.3em;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.legal-content li { margin-bottom: 0.4em; }
.legal-content p { color: var(--color-text-muted); }
.legal-meta { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 2em; }

/* -------------------- 404 -------------------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px;
}
.error-page .code {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.2em;
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--color-green-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 26px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand h2 { color: var(--color-white); font-size: 1.2rem; margin-bottom: 0.3em; }
.footer-brand p { color: rgba(255,255,255,0.7); max-width: 42ch; font-size: 0.92rem; }
.footer-col h3 {
  color: var(--color-gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.8); font-size: 0.95rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
