/**
 * styles.css — V&J Project Services
 * Mobile-first stylesheet. Edit the CSS variables in :root to retheme the site.
 */

:root {
  /* Brand colors (from logo) */
  --color-primary: #2D2E83;      /* deep navy — header, buttons, dark sections */
  --color-primary-dark: #1F2060;
  --color-accent: #A6A9E0;       /* periwinkle/lavender — highlights, hover */
  --color-bg: #FAFAFA;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #55575f;
  --color-border: #E4E4EC;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --header-height: 100px;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(45, 46, 131, 0.08);
  --transition: 0.25s ease;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

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

section { padding: 72px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}
.btn-accent:hover {
  background: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

.btn-cta { padding: 10px 22px; font-size: 0.85rem; }

/* ===== Section headings ===== */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-heading h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.section-heading p { color: var(--color-text-muted); font-size: 1.05rem; }
.section-heading-light h2 { color: var(--color-white); }
.section-heading-light p { color: var(--color-accent); }

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

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

.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 80px; width: auto; border-radius: 8px; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; gap: 32px; }
.mobile-cta-item { display: none; }
.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.lang-toggle { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; }
.lang-btn {
  color: var(--color-text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.lang-btn.active { color: var(--color-primary); background: rgba(166,169,224,0.25); }
.lang-sep { color: var(--color-border); }

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(45,46,131,0.06);
  transition: background var(--transition), transform var(--transition);
}
.icon-link:hover { background: var(--color-accent); transform: translateY(-2px); }
.icon-svg { width: 18px; height: 18px; fill: var(--color-primary); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px; height: 20px;
}
.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  /* PLACEHOLDER: replace this Unsplash URL with a real project/hero photo */
  background: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,46,131,0.85) 0%, rgba(31,32,96,0.65) 60%, rgba(31,32,96,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: var(--color-white);
}
.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: 20px;
}
.hero-subheadline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-accent);
  margin-bottom: 32px;
  max-width: 560px;
}

/* =========================================================
   SERVICES
========================================================= */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.card-icon svg {
  width: 30px; height: 30px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--color-text-muted); font-size: 0.98rem; }

/* =========================================================
   WHY CHOOSE US
========================================================= */
.why-us { background: var(--color-primary); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.why-item { text-align: center; color: var(--color-white); }
.why-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(166,169,224,0.15);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 26px; height: 26px; fill: var(--color-accent); }
.why-item h3 { color: var(--color-white); font-size: 1.15rem; margin-bottom: 8px; }
.why-item p { color: #cfd0f0; font-size: 0.92rem; }

/* =========================================================
   GALLERY
========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(31,32,96,0.85), rgba(31,32,96,0));
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
}
.gallery-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* =========================================================
   ABOUT
========================================================= */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--color-text-muted); font-size: 1.05rem; }

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials { background: var(--color-primary-dark); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(166,169,224,0.25);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--color-white);
}
.testimonial-card p { font-style: italic; margin-bottom: 16px; color: #e4e4f7; }
.testimonial-card cite { font-weight: 700; color: var(--color-accent); font-style: normal; font-size: 0.9rem; }

/* =========================================================
   CONTACT
========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info p { color: var(--color-text-muted); margin-bottom: 24px; }

.whatsapp-inline-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #25D366;
  color: var(--color-white);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-bottom: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-inline-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.whatsapp-inline-cta .icon-svg { width: 26px; height: 26px; fill: var(--color-white); flex-shrink: 0; }

.service-area-note { font-weight: 700; color: var(--color-primary); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 700; font-size: 0.9rem; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-error {
  display: none;
  color: #c0392b;
  font-size: 0.82rem;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: #c0392b; }
.form-group.has-error .form-error { display: block; }

.form-status {
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  min-height: 1.2em;
}
.form-status.success { color: #1e8e3e; }
.form-status.error { color: #c0392b; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer { background: var(--color-primary-dark); color: #d6d7f2; padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
}
.footer-brand p { margin-top: 14px; font-size: 0.92rem; color: #b7b9e6; }
.footer-logo { height: 70px; width: auto; border-radius: 6px; }
.footer-col h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.92rem; color: #d6d7f2; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-accent); }
.footer-social { display: flex; gap: 12px; margin-bottom: 14px; }
.footer-social .icon-link { background: rgba(255,255,255,0.1); }
.footer-social .icon-svg { fill: var(--color-white); }
.footer-social .icon-link:hover { background: var(--color-accent); }
.footer-social .icon-link:hover .icon-svg { fill: var(--color-primary-dark); }
.footer-phone { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.82rem;
  color: #9c9ed8;
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform var(--transition);
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--color-white); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 6px 18px rgba(0,0,0,0.25), 0 0 0 10px rgba(37,211,102,0); }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(1, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .about-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 0.9fr 1.1fr; }
  .contact-form { grid-template-columns: repeat(2, 1fr); }
  .form-group-full { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (max-width: 859px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-white);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    justify-content: flex-start;
  }
  .main-nav.open { max-height: 400px; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; padding: 8px 0; }
  .nav-list li { border-bottom: 1px solid var(--color-border); }
  .nav-link { display: block; padding: 16px 24px; }
  .nav-link::after { display: none; }
  .btn-cta { display: none; }
  .mobile-cta-item { display: block; padding: 16px 24px; }
  .mobile-cta-item .btn { display: block; text-align: center; }
  .mobile-menu-toggle { display: flex; }
}
