@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Raleway:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
  --tan: rgb(202, 167, 139);
  --tan-services: rgb(198, 169, 144);
  --coral: rgb(222, 98, 102);
  --charcoal: rgb(58, 58, 58);
  --gray-bg: rgb(241, 241, 241);
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: #fff;
  color: rgb(51,51,51);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.stars-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0 calc(max(40px, (100% - 1140px) / 2));
  display: flex;
  align-items: center;
  gap: 0;
  background: transparent;
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgba(202, 167, 139, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-menu-btn {
  width: 74px;
  height: 75px;
  background: var(--coral);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 16px;
  transition: background 0.3s;
}

.nav-menu-btn .material-icons {
  font-size: 24px;
  color: var(--charcoal);
  transition: color 0.3s;
}

.nav-menu-btn:hover { background: var(--charcoal); }
.nav-menu-btn:hover .material-icons { color: var(--white); }

.nav-logo { margin-left: 8px; }
.nav-logo img { height: 40px; width: auto; display: block; }

.nav-links { display: none; }

/* Fullscreen overlay menu */
.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--tan-services);
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-header {
  width: 100%;
  padding: 0 calc(max(40px, (100% - 1140px) / 2));
  display: flex;
  align-items: center;
}

.menu-close-btn {
  width: 74px;
  height: 75px;
  background: var(--charcoal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.3s;
}

.menu-close-btn .material-icons {
  font-size: 24px;
  color: var(--white);
}

.menu-close-btn:hover { background: var(--coral); }

.menu-overlay-logo { margin-left: 8px; }
.menu-overlay-logo img { height: 40px; width: auto; display: block; }

.menu-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.menu-overlay-links a {
  color: var(--charcoal);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 60px;
  font-weight: 900;
  line-height: 1.3;
  transition: color 0.3s, transform 0.3s;
}

.menu-overlay-links a:hover {
  color: var(--coral);
  transform: translateX(8px);
}

.menu-overlay-social {
  padding-bottom: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.menu-overlay-social a {
  color: var(--charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.menu-overlay-social a svg {
  width: 24px;
  height: 24px;
  fill: var(--charcoal);
  transition: fill 0.3s;
}

.menu-overlay-social a:hover svg { fill: var(--coral); }

/* Legacy mobile-nav hidden */
.mobile-nav { display: none; }
.nav-hamburger { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    url('../images/about-hero.png') center bottom / cover no-repeat,
    var(--tan);
  padding: 120px calc(max(40px, (100% - 1140px) / 2)) 80px;
}

.hero-content { width: 100%; }

.hero-location {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 64px;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-title .highlight {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 6px;
  text-decoration-thickness: 6px;
}

.hero-desc {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 520px;
  margin-bottom: 32px;
  opacity: 0.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: var(--coral);
  color: var(--charcoal);
  border: 3px solid var(--charcoal);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.btn:hover {
  background: var(--charcoal);
  color: var(--coral);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============ COMMON SECTIONS ============ */
section { padding: 96px 40px; }
.container { max-width: 1140px; margin: 0 auto; }

.section-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.7;
  text-align: center;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 38px;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.1;
}

/* ============ ABOUT (HISTORY) ============ */
.section-history {
  background: var(--white);
  text-align: center;
}

.section-history .section-content {
  max-width: 720px;
  margin: 48px auto 0;
}

.section-history .section-content p {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: left;
}

/* ============ SERVICES ============ */
.section-services {
  background: var(--tan-services);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.service-card {
  text-align: left;
  padding: 32px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s, transform 0.3s;
}

.service-card:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 40px;
  color: var(--charcoal);
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.service-card p {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.7;
}

/* ============ PORTFOLIO ============ */
.section-portfolio {
  background: var(--tan);
  text-align: center;
}

.portfolio-carousel {
  display: flex;
  gap: 24px;
  margin-top: 64px;
  margin-bottom: 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.portfolio-carousel.dragging { cursor: grabbing; }
.portfolio-carousel.dragging .portfolio-card { pointer-events: none; }

.portfolio-carousel::-webkit-scrollbar { display: none; }

.portfolio-carousel .portfolio-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 300px;
  scroll-snap-align: start;
}

.portfolio-card {
  position: relative;
  display: block;
  text-decoration: none;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform 0.4s;
}

.portfolio-card:hover { transform: scale(1.02); }

.portfolio-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover::before { opacity: 1; }

.portfolio-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  z-index: 1;
  color: var(--white);
}

.portfolio-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 4px;
}

.portfolio-card .tag {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  opacity: 0.85;
}

/* ============ CTA CONTACT ============ */
.cta-contact {
  background: var(--white);
  text-align: center;
  padding: 80px 40px;
}

.cta-contact .container { max-width: 1140px; margin: 0 auto; }

.cta-contact .cta-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  color: var(--charcoal);
  opacity: 0.7;
  margin-bottom: 32px;
}

.section-cta-contact {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}

.section-cta-contact .section-title {
  color: var(--coral);
  margin-bottom: 8px;
}

.section-cta-contact .section-subtitle {
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
}

.cta-phone {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 56px;
  color: var(--coral);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: transform 0.3s;
}

.cta-phone:hover { transform: scale(1.03); }

.cta-email {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.cta-email:hover { color: var(--coral); }

/* ============ TEAM ============ */
.section-team {
  background: var(--gray-bg);
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1a1a1a;
}

.team-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s;
}

.team-card:hover .team-photo { transform: scale(1.05); }

.team-frame {
  position: absolute; inset: 24px;
  border: 3px solid var(--coral);
  pointer-events: none;
  transition: inset 0.4s;
}

.team-card:hover .team-frame { inset: 20px; }

.team-card:nth-child(1) .team-frame { border-color: var(--tan); }
.team-card:nth-child(2) .team-frame { border-color: var(--white); }
.team-card:nth-child(3) .team-frame { border-color: var(--coral); }

.team-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: var(--white);
  text-align: left;
}

.team-info h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.team-info p {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  opacity: 0.8;
  margin-top: 2px;
}

.team-info a {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.3s;
}

.team-info a:hover { color: var(--coral); }

/* ============ JOIN CTA ============ */
.section-join {
  background: var(--coral);
  text-align: center;
}

.section-join .section-title { color: var(--charcoal); }

.section-join .section-subtitle {
  color: var(--charcoal);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--tan);
  padding: 80px 40px 32px;
  color: var(--charcoal);
}

.footer-top {
  max-width: 1140px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 38px;
  color: var(--charcoal);
  line-height: 1.1;
}

.footer-logo img {
  height: 32px;
  width: auto;
  margin-top: 24px;
}

.footer-contact {
  text-align: right;
}

.footer-phone {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.footer-form { display: flex; }

.footer-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--charcoal);
  border-right: none;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  background: rgba(255,255,255,0.4);
  color: var(--charcoal);
  outline: none;
  transition: background 0.3s;
}

.footer-form input:focus { background: rgba(255,255,255,0.7); }

.footer-form input::placeholder { color: var(--charcoal); opacity: 0.5; }

.footer-form button {
  padding: 12px 24px;
  background: var(--coral);
  color: var(--white);
  border: 2px solid var(--charcoal);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.footer-form button:hover { background: var(--charcoal); }

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(58,58,58,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  color: var(--charcoal);
}

.footer-bottom-info p { margin-bottom: 2px; opacity: 0.7; }

.footer-social { display: flex; gap: 24px; }

.footer-social a {
  color: var(--charcoal);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--coral); }

/* ============ WHATSAPP ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 28px; height: 28px;
  fill: var(--white);
}

/* ============ INNER PAGE HERO ============ */
.page-hero {
  background: var(--tan);
  padding: 120px 40px 80px;
  margin-top: 0;
}

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

.page-hero .section-title {
  font-size: 56px;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--charcoal);
  opacity: 0.6;
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--charcoal); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--coral); }

/* Case study */
.case-study-content {
  background: var(--white);
  padding: 80px 40px;
}

.case-study-content .container { max-width: 760px; }

.case-study-content h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--charcoal);
  margin: 40px 0 16px;
}

.case-study-content p {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.case-study-content img {
  width: 100%;
  margin: 32px 0;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 24px;
  background: var(--gray-bg);
}

.case-meta dt {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 4px;
}

.case-meta dd {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
}

.case-nav {
  background: var(--charcoal);
  padding: 32px 40px;
}

.case-nav .container {
  max-width: 760px;
  display: flex;
  justify-content: space-between;
}

.case-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
}

.case-nav a:hover { color: var(--coral); }

/* About page values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.value-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.value-icon { font-size: 32px; margin-bottom: 16px; }

.value-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.value-card p {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--charcoal);
  opacity: 0.75;
}

/* Cases index */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.case-card {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--white);
}

.case-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
}

.case-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 1;
}

.case-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 24px;
}

.case-card .tag {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  opacity: 0.85;
  display: block;
  margin-bottom: 4px;
}

/* ============ FOCUS STATES ============ */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

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

@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .menu-overlay-header { padding: 0 20px; }
  .menu-overlay-links a { font-size: 32px; }

  section { padding: 64px 20px; }

  .hero { padding: 120px 20px 60px; }
  .hero-title { font-size: 40px; }
  .hero-desc { font-size: 16px; }

  .services-grid,
  .team-grid,
  .values-grid,
  .cases-grid { grid-template-columns: 1fr; }

  .case-meta { grid-template-columns: 1fr; }

  .footer { padding: 64px 20px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .portfolio-carousel .portfolio-card { flex: 0 0 280px; }

  .cta-phone { font-size: 36px; }
  .section-title { font-size: 30px; }
  .page-hero .section-title { font-size: 38px; }
}
