/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --primary: #028090;
  --primary-dark: #017381;
  --accent: #1e73be;
  --text: #22222f;
  --text-light: #575760;
  --text-muted: #b2b2be;
  --bg: #ffffff;
  --bg-light: #f7f8f9;
  --bg-dark: #1a1a2e;
  --bg-accent: #e8f4f8;
  --border: #e0e0e0;
  --success: #2e7d32;
  --error: #c62828;
  --font-body: "Libre Baskerville", serif;
  --font-heading: "Merriweather", serif;
  --max-width: 1200px;
  --header-height: 70px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  padding-left: 1.5em;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.6em;
}

h1 { font-size: 2.8rem; font-weight: 900; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1em;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 1.5rem; }

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

.section {
  padding: 60px 0;
}

.bg-light {
  background: var(--bg-light);
}

.bg-accent {
  background: var(--bg-accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.col-img img {
  border-radius: 8px;
  width: 100%;
}

figure {
  margin: 0 0 1.5rem;
}

figcaption {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* ===========================
   Top Bar
   =========================== */
.top-bar {
  background: var(--bg-dark);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-info {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  justify-content: flex-start;
}

.top-bar-info a {
  color: #ccc;
  transition: color 0.2s;
}

.top-bar-info a:hover {
  color: #fff;
}

.top-bar-info i {
  margin-right: 6px;
}

/* ===========================
   Main Navigation
   =========================== */
.main-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.main-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.site-logo:hover {
  color: var(--primary);
}

.site-logo .reg {
  font-size: 0.7em;
  vertical-align: super;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  align-items: center;
}

.nav-menu > li > a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta a {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 6px !important;
  border-bottom: none !important;
  padding: 10px 20px !important;
}

.nav-cta a:hover {
  background: var(--primary-dark) !important;
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: "\f0d7";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 6px;
  font-size: 0.7em;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  min-width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 0 0 8px 8px;
  list-style: none;
  padding: 8px 0;
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-size: 0.85rem;
  transition: background 0.2s;
}

.dropdown li a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('/images/hero/hero-bg.webp') center/cover no-repeat;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 46, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
}

.hero-subtitle {
  font-weight: 400;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
}

.hero-welcome {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: rgba(255,255,255,0.9);
}

/* ===========================
   Page Hero (inner pages)
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2a2a4a 100%);
  padding: 50px 0;
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0;
  font-size: 2.4rem;
}

.page-content {
  padding: 50px 0;
}

.page-content p,
.page-content li {
  margin-bottom: 0.8em;
}

.page-content h2 {
  margin-top: 1.5em;
}

.page-content img {
  border-radius: 8px;
  margin: 1em 0;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

/* ===========================
   Services Grid
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===========================
   About Founder (two-col)
   =========================== */
.about-founder .col-img img {
  max-width: 400px;
  margin: 0 auto;
}

/* ===========================
   Contact Section
   =========================== */
.contact-section {
  padding: 60px 0;
}

.contact-info h2 {
  color: var(--text);
}

.contact-details {
  margin-top: 30px;
}

.contact-details a {
  color: var(--text);
  font-size: 1.1rem;
}

.contact-details a:hover {
  color: var(--primary);
}

.contact-details i {
  margin-right: 8px;
  color: var(--primary);
}

/* ===========================
   Forms
   =========================== */
.form-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-card h3 {
  margin-bottom: 20px;
  color: var(--text);
}

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

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.required {
  color: var(--error);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 128, 144, 0.15);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23575760' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

.form-message-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.form-message-error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Checkbox group for services */
.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-group legend {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 6px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  accent-color: var(--primary);
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: var(--bg-dark);
  color: #ccc;
}

.footer-main {
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

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

.footer-col a {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col p {
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom-inner {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: #aaa;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 4px;
}

.credit {
  font-size: 0.75rem;
}

.credit a {
  color: #777;
}

/* Phone bar (mobile sticky) */
.phone-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  text-align: center;
  padding: 14px;
  z-index: 999;
}

.phone-bar a {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ===========================
   Scroll Animations
   =========================== */
.animate-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===========================
   Responsive — Tablet
   =========================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .top-bar {
    display: none;
  }

  /* Hamburger */
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    overflow-y: auto;
    z-index: 999;
  }

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

  .nav-menu > li > a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin-top: 16px;
  }

  .nav-cta a {
    display: block;
    text-align: center;
  }

  /* Dropdown mobile */
  .has-dropdown > a::after {
    float: right;
    transition: transform 0.3s;
  }

  .has-dropdown.dropdown-open > a::after {
    transform: rotate(180deg);
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    display: none;
    padding-left: 16px;
  }

  .has-dropdown.dropdown-open .dropdown {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: 400px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  /* Layout */
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reverse-mobile {
    direction: ltr;
  }

  .reverse-mobile .col-img {
    order: -1;
  }

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

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

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

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Phone bar */
  .phone-bar {
    display: block;
  }

  body {
    padding-bottom: 56px;
  }
}
