/* ===== CSS Variables ===== */
:root {
  --primary: #0F4C5C;
  --secondary: #1B6B7A;
  --accent: #F97316;
  --accent-hover: #ea580c;
  --light: #F5F7F6;
  --white: #FFFFFF;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --green-100: #dcfce7;
  --green-700: #15803d;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-700: #b91c1c;
  --yellow-400: #facc15;
  --max-width: 1280px;
  --header-height: 64px;
  --header-height-md: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--gray-700);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

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

.header-logo img {
  height: 48px;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-mobile-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-call-sm {
  background: var(--accent);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.hamburger {
  background: none;
  border: none;
  color: var(--primary);
  padding: 4px;
  cursor: pointer;
}

.hamburger svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.hamburger.open svg {
  transform: rotate(90deg);
}

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 0 16px 16px;
  animation: slideDown 0.25s ease-out;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.mobile-menu a.active {
  color: var(--accent);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--gray-100);
}

.btn-white-accent {
  background: var(--white);
  color: var(--accent);
}

.btn-white-accent:hover {
  background: var(--gray-100);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 14px;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-call-nav {
  background: var(--accent);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-call-nav:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

/* ===== Hero Sections ===== */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 64px 0;
  animation: fadeIn 0.8s ease-out;
}

.hero-home {
  padding: 64px 0 96px;
}

.hero .container {
  text-align: center;
}

.hero-logo {
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 8px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

/* ===== Sections ===== */
.section {
  padding: 64px 0;
}

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

.section-white {
  background: var(--white);
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
}

/* ===== Service Cards Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

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

/* Service icon — teal gradient circle */
.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-icon svg {
  width: 40px;
  height: 40px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-overview-card:hover .service-icon,
.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(15,76,92,0.3);
}
.service-card .service-icon {
  width: 100px;
  height: 100px;
  margin: 24px auto 0;
}
.service-card .service-icon svg {
  width: 48px;
  height: 48px;
}

.service-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}

.service-card .btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* Home page service overview cards (smaller) */
.service-overview-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s;
  text-align: center;
}

.service-overview-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}


.service-overview-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-overview-card p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-item {
  text-align: center;
}

.why-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.why-item h3 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== Google Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars svg {
  width: 20px;
  height: 20px;
}

.star-filled {
  color: var(--yellow-400);
}

.star-empty {
  color: var(--gray-300);
}

.review-text {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 12px;
}

.review-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.reviews-link {
  text-align: center;
  margin-top: 32px;
}

.reviews-link a {
  color: var(--accent);
  font-weight: 600;
}

.reviews-link a:hover {
  text-decoration: underline;
}

.reviews-loading {
  text-align: center;
  color: var(--gray-500);
}

/* ===== Service Area ===== */
.service-area-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--gray-600);
}

.service-area-text h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--accent);
  padding: 48px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 18px;
  margin-bottom: 24px;
}

/* ===== About Page ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-block {
  margin-bottom: 40px;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.about-block p {
  color: var(--gray-600);
  line-height: 1.7;
}

.values-list {
  list-style: none;
}

.values-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gray-600);
}

.values-list .check {
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-form-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-form-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.form-group label .required {
  color: var(--red-500);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

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

.form-message {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

.form-message.success {
  background: var(--green-100);
  color: var(--green-700);
}

.form-message.error {
  background: var(--red-100);
  color: var(--red-700);
}

.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-info-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-info-list {
  list-style: none;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item .label {
  font-weight: 600;
  color: var(--primary);
}

.contact-info-item a {
  color: var(--gray-600);
  transition: color 0.2s;
}

.contact-info-item a:hover {
  color: var(--accent);
}

.contact-info-item p {
  color: var(--gray-600);
}

.contact-map {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-top: 32px;
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 48px 0;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 4px;
  background: var(--white);
  padding: 4px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.footer h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-contact li {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.footer-contact a {
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--gray-400);
}

/* ===== Floating Call Button ===== */
.floating-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 40;
  display: block;
}

.floating-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  color: var(--white);
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.floating-call a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseRing 2s ease-out infinite;
  z-index: -1;
}

.floating-call svg {
  width: 24px;
  height: 24px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.animate-on-scroll.fade-in-only {
  transform: none;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  :root {
    --header-height: var(--header-height-md);
  }

  .header-inner {
    height: var(--header-height-md);
  }

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

  .nav-desktop {
    display: flex;
  }

  .nav-mobile-controls {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .floating-call {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-home {
    padding: 96px 0 128px;
  }

  .hero-logo {
    height: 128px;
  }

  .hero p {
    font-size: 20px;
  }

  .section-title {
    font-size: 30px;
  }

  .cta-banner h2 {
    font-size: 30px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }

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

}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 48px;
  }

}

@media (min-width: 1280px) {
  .services-grid.services-page-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .floating-call a::before {
    animation: none;
  }

  .mobile-menu.open {
    animation: none;
  }
}
