/* ========================================
   Design Tokens
   ======================================== */
:root {
  --navy:     #0f1923;
  --charcoal: #1e2b35;
  --slate:    #2e3f4f;
  --gold:     #c9a84c;
  --gold-lt:  #e8c97a;
  --cream:    #f5f0e8;
  --muted:    #8a9baa;

  --f-display: 'Playfair Display', Georgia, serif;
  --f-body:    'DM Sans', sans-serif;

  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--f-body);
  color: var(--cream);
  background: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ========================================
   Typography
   ======================================== */
.section__heading {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--cream);
}

.section__heading--center {
  text-align: center;
}

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

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--muted);
}
.btn--outline:hover {
  border-color: var(--cream);
}

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

.btn--full {
  width: 100%;
}

/* ========================================
   Nav
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s ease;
}

.nav--scrolled {
  background: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
}
.nav__logo span {
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover {
  color: var(--cream);
}
.nav__links .btn {
  color: var(--navy);
}
.nav__links .btn:hover {
  color: var(--navy);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
}
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,25,35,0.92) 0%, rgba(30,43,53,0.8) 50%, rgba(46,63,79,0.7) 100%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--cream);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 48px;
  border-left: 2px solid rgba(201,168,76,0.2);
}

.stat__number {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
  background: var(--charcoal);
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 20px 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-bar__icon {
  font-size: 1.2rem;
}

.trust-bar__item strong {
  color: var(--cream);
}

/* ========================================
   About
   ======================================== */
.about {
  background: var(--navy);
}

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

.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.about__content p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about__trust {
  color: var(--gold) !important;
  font-size: 1.1rem;
  margin-top: 8px;
}

.about__credentials {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--slate);
}

.credential__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.credential__value {
  font-weight: 700;
  color: var(--cream);
  font-size: 0.95rem;
}

/* ========================================
   Services
   ======================================== */
.services {
  background: var(--charcoal);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--navy);
  border: 1px solid var(--slate);
  border-radius: 8px;
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.service-card__num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  opacity: 0.5;
}

.service-card__title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--cream);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ========================================
   Projects
   ======================================== */
.projects {
  background: var(--navy);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}

.project-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(15,25,35,0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-card:hover .project-card__overlay {
  transform: translateY(0);
}

.project-card__overlay h3 {
  font-family: var(--f-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.project-card__overlay p {
  font-size: 0.8rem;
  color: var(--muted);
}

.project-card--featured {
  grid-column: span 7;
  grid-row: span 2;
}
.project-card--medium {
  grid-column: span 5;
}
.project-card--small {
  grid-column: span 4;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
  background: var(--charcoal);
}

.testimonials__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.testimonials__stars {
  font-size: 2rem;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.testimonials__score {
  font-family: var(--f-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.testimonials__count {
  font-size: 0.9rem;
  color: var(--muted);
}

.testimonials__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial-card {
  background: var(--navy);
  border: 1px solid var(--slate);
  border-radius: 8px;
  padding: 32px;
}

.testimonial-card__quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--cream);
  margin-bottom: 16px;
}

.testimonial-card__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.testimonial-card__meta strong {
  color: var(--cream);
}

.testimonial-card__type {
  color: var(--gold);
  font-size: 0.8rem;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  background: var(--navy);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact__detail {
  margin-bottom: 24px;
}

.contact__detail strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact__detail a,
.contact__detail span {
  color: var(--cream);
  font-size: 1.1rem;
}

.contact__detail a:hover {
  color: var(--gold);
}

.contact__form {
  background: var(--charcoal);
  border: 1px solid var(--slate);
  border-radius: 8px;
  padding: 40px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--navy);
  border: 1px solid var(--slate);
  border-radius: 6px;
  color: var(--cream);
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9baa' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--charcoal);
  border-top: 1px solid var(--slate);
  padding: 48px 0;
  text-align: center;
}

.footer__brand {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__nav a:hover {
  color: var(--cream);
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========================================
   Placeholder Images
   ======================================== */
.placeholder-img {
  background: var(--charcoal);
  border: 1px dashed var(--slate);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__stats {
    flex-direction: row;
    border-left: none;
    padding-left: 0;
    border-top: 2px solid rgba(201,168,76,0.2);
    padding-top: 32px;
    gap: 32px;
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__photo {
    max-width: 400px;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .projects__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 180px;
  }
  .project-card--featured {
    grid-column: span 6;
    grid-row: span 2;
  }
  .project-card--medium {
    grid-column: span 3;
  }
  .project-card--small {
    grid-column: span 3;
  }
  .testimonials__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .nav__hamburger {
    display: flex;
  }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 25, 35, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav__links a {
    font-size: 1.2rem;
  }
  .hero {
    min-height: auto;
    padding: 120px 0 64px;
  }
  .hero__stats {
    flex-direction: column;
    gap: 24px;
  }
  .services__grid {
    grid-template-columns: 1fr;
  }
  .projects__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .project-card--featured,
  .project-card--medium,
  .project-card--small {
    grid-column: span 1;
    grid-row: span 1;
  }
  .project-card__overlay {
    transform: translateY(0);
  }
  .about__credentials {
    flex-direction: column;
    gap: 16px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .trust-bar__inner {
    gap: 24px;
    justify-content: flex-start;
  }
  .footer__nav {
    flex-wrap: wrap;
    gap: 16px;
  }
  .section {
    padding: 64px 0;
  }
}
