/* ===========================
   SOS Construction – Styles
   =========================== */

:root {
  --color-primary: #09132F;   /* lighter navy blue */
  --color-dark:    #2c3e50;   /* grey-navy */
  --color-mid:     #7f8c8d;   /* grey */
  --color-light:   #ecf0f1;   /* light grey */
  --color-white:   #ffffff;
  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --transition:    0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.7;
  font-size: 20px;
}

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

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

ul { list-style: none; }

/* ── Nav ──────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  transition: background var(--transition);
}

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

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: 1px;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white);
  letter-spacing: 1px;
}

.nav-logo-text span { color: var(--color-primary); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ccc;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--color-primary); }

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 22px;
  border-radius: 4px;
}

.nav-cta:hover { background: #000d26; color: var(--color-white) !important; }

/* ── Home ─────────────────────────── */
#home {
  min-height: 100vh;
  background: linear-gradient(135deg, #001a4d 0%, #2c3e50 50%, #34495e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}

.home-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(0,26,77,0.04) 0px, rgba(0,26,77,0.04) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, rgba(0,26,77,0.04) 0px, rgba(0,26,77,0.04) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}

.home-content { position: relative; z-index: 1; max-width: 780px; margin: auto; }

.home-logo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 2px dashed rgba(0,26,77,0.5);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 0 auto 36px;
  overflow: hidden;
  position: relative;
  cursor: pointer;

  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

/* bigger hover zone */
.home-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -20px;
}

/* glow overlay */
.home-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.home-logo-wrap img {
  width: 220%;
  height: 220%;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* hover effect */
.home-logo-wrap:hover {
  transform: scale(1.08);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 0 30px rgba(255,255,255,0.2);
}

.home-logo-wrap:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.home-logo-wrap:hover::after {
  opacity: 1;
}

/* click vibration */
.home-logo-wrap:active {
  animation: logo-vibrate 0.18s linear;
}

@keyframes logo-vibrate {
  0%   { transform: scale(1.05) translate(0,0); }
  25%  { transform: scale(1.05) translate(-2px,1px); }
  50%  { transform: scale(1.05) translate(2px,-1px); }
  75%  { transform: scale(1.05) translate(-1px,1px); }
  100% { transform: scale(1.08) translate(0,0); }
}

.home-tagline {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.home-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.home-title span { color: var(--color-primary); }

.home-subtitle {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 560px;
  margin: 0 auto 40px;
}

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

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 16px 38px;
  border-radius: 4px;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover { background: #000d26; transform: translateY(-2px); }

.btn-outline {
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 14px 38px;
  border-radius: 4px;
  transition: border-color var(--transition), transform var(--transition);
}

.btn-outline:hover { border-color: var(--color-primary); transform: translateY(-2px); }

/* ── Stats bar ────────────────────── */
#stats {
  background: var(--color-primary);
  padding: 32px 5%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.stat-item { color: var(--color-white); }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Sections shared ──────────────── */
.section {
  padding: 96px 5%;
}

.section-inner {
  max-width: 1100px;
  margin: auto;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.section-desc {
  font-size: 1.05rem;
  color: #666;
  max-width: 600px;
}

/* ── About ────────────────────────── */
#about { background: #f8f9fa; }

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

.about-image-wrap {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-primary);
  /* ❌ remove this */
  /* aspect-ratio: 4/3; */
}

.about-image img {
  width: 100%;
  height: auto; /* 🔑 important */
  object-fit: contain;
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #999;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.img-placeholder svg { opacity: 0.4; }

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,26,77,0.4);
}

.about-badge-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge-txt {
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.about-text { display: flex; flex-direction: column; gap: 20px; }

.about-text .section-desc { max-width: 100%; }

.about-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-mid);
}

.about-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── Services ─────────────────────── */
#services { background: var(--color-white);
}

#services .section-label { color: var(--color-primary); }
#services .section-title { color: var(--color-dark); }
#services .section-desc { color: #666; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.service-card {
  background: var(--color-light);
  border-radius: 8px;
  padding: 36px 30px;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-top-color: var(--color-primary);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(0,26,77,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-dark);
}

.service-desc { font-size: 0.92rem; color: #666; }

/* ── Gallery ──────────────────────── */
#gallery { background: #2c3e50; }

#gallery .section-label { color: white; }
#gallery .section-title { color: white; }
#gallery .section-desc { color: #ddd; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 52px;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  background: #2d2d2d;
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(232,80,10,0.0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-item:hover .gallery-overlay { background: rgba(0,26,77,0.15); }

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 20px;
  text-align: center;
}

.gallery-placeholder svg { opacity: 0.3; }

/* ── Testimonials ─────────────────── */
#testimonials { background: #ecf0f1; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stars { color: var(--color-primary); font-size: 1.1rem; letter-spacing: 2px; }

.testimonial-text {
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  line-height: 1.75;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ddd;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.author-role { font-size: 0.8rem; color: #999; }

/* ── Contact ──────────────────────── */
#contact { background: var(--color-white);
}

#contact .section-label { color: var(--color-primary); }
#contact .section-title { color: var(--color-dark); }

.contact-info { display: flex; flex-direction: column; gap: 20px; }

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

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(0,26,77,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-detail-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}

.contact-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
}

.contact-detail-value a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color var(--transition);
}

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

.contact-form { display: flex; flex-direction: column; gap: 18px; }

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

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #555;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
}

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

.btn-submit {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 16px 38px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: fit-content;
  transition: background var(--transition), transform var(--transition);
}

.btn-submit:hover { background: #000d26; transform: translateY(-2px); }

/* ── Footer ───────────────────────── */
#footer {
  background: rgba(44, 62, 80, 0.95);
  padding: 60px 5% 28px;
  color: #aaa;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #333;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-white);
  overflow: hidden;
}

.footer-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-white);
}

.footer-logo-text span { color: var(--color-primary); }

.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: #aaa;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--color-primary); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-bottom a { color: var(--color-primary); }

/* ── Responsive ───────────────────── */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.featured { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.featured { grid-column: span 1; aspect-ratio: 4/3; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
