/* ============================================
   TITAN TILE US — Shared Stylesheet
   Brand: Navy #172747, Blue #195073, Gold #F0B855, Cream #F5EFE3
   Default background: WHITE. Cream/navy used for accent sections only.
   ============================================ */

:root {
  --navy: #172747;
  --blue: #195073;
  --gray: #889195;
  --cream: #F5EFE3;
  --gold: #F0B855;
  --white: #FFFFFF;
  --rule: rgba(23, 39, 71, 0.12);
  --shadow: 0 30px 80px -30px rgba(23, 39, 71, 0.4);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--navy);
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; transition: opacity 0.3s var(--ease); }
a:hover { opacity: 0.7; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ===== REUSABLE ELEMENTS ===== */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
}
.eyebrow.on-dark { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 18px 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--gold); color: var(--navy); opacity: 1; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--navy); color: var(--white); opacity: 1; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); opacity: 1; }
.btn-outline-light { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); opacity: 1; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; max-width: 1320px; margin: 0 auto;
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 28px; font-weight: 900; letter-spacing: -0.01em;
  color: var(--navy); text-transform: uppercase;
  display: inline-flex; align-items: center;
}
.logo img {
  height: 50px;
  width: auto;
  display: block;
}
.logo .titan {
  background: var(--navy); color: var(--white);
  padding: 6px 12px 4px; margin-right: 4px;
}
.nav-links {
  display: flex; gap: 42px; list-style: none;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-phone { font-weight: 700; color: var(--navy); }
.menu-toggle {
  display: none; background: none; border: none;
  font-size: 28px; cursor: pointer; color: var(--navy);
}

/* ===== PAGE TOP SPACING ===== */
.page-top { padding-top: 100px; }

/* ===== HERO (Home) ===== */
.hero { padding: 160px 0 120px; position: relative; overflow: hidden; background: var(--white); }
.hero::before {
  content: ""; position: absolute; top: 0; right: 0;
  width: 45%; height: 100%; background: var(--navy); z-index: 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 80px; align-items: center; position: relative; z-index: 2;
}
.hero-text .eyebrow { margin-bottom: 32px; }
.hero h1 {
  font-size: clamp(52px, 8vw, 110px);
  margin-bottom: 32px; font-weight: 900; line-height: 1;
  padding-top: 0.1em;
}
.hero h1 .gold { color: var(--gold); display: block; }
.hero-sub {
  font-size: 18px; color: var(--navy); opacity: 0.8;
  max-width: 500px; margin-bottom: 44px;
  line-height: 1.6; font-weight: 400;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  position: relative; aspect-ratio: 4/5;
  background: var(--blue); overflow: hidden;
  border: 6px solid var(--white); box-shadow: var(--shadow);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--gold); color: var(--navy);
  padding: 20px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  z-index: 3;
}

/* ===== PAGE HEADER (inner pages) ===== */
.page-header {
  padding: 180px 0 100px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.page-header::after {
  content: ""; position: absolute; bottom: -1px; left: 0;
  width: 200px; height: 6px; background: var(--gold);
}
.page-header .eyebrow { margin-bottom: 24px; }
.page-header h1 {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900; line-height: 1;
  max-width: 900px;
  padding-top: 0.1em;
}
.page-header h1 .gold { color: var(--gold); }
.page-header p {
  font-size: 19px; color: var(--navy); opacity: 0.75;
  max-width: 640px; margin-top: 32px;
  line-height: 1.6; font-weight: 400;
}

/* ===== TAGLINE BAR ===== */
.tagline-bar {
  background: var(--navy); color: var(--white);
  padding: 36px 0; overflow: hidden;
  border-top: 6px solid var(--gold);
}
.tagline-track {
  display: flex; align-items: center; gap: 60px;
  white-space: nowrap; animation: scroll 45s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tagline-item {
  font-size: 38px; font-weight: 900;
  letter-spacing: -0.01em; text-transform: uppercase;
  color: var(--white);
}
.tagline-item.gold { color: var(--gold); }
.tagline-dot { width: 12px; height: 12px; background: var(--gold); flex-shrink: 0; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--cream);
  padding: 32px 0;
}
.trust-items {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.trust-item {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--navy);
  display: flex; align-items: center; gap: 12px;
}
.trust-item::before {
  content: ""; width: 8px; height: 8px;
  background: var(--gold); display: inline-block;
}

/* ===== SECTIONS ===== */
section { padding: 140px 0; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.section-navy::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(240, 184, 85, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(25, 80, 115, 0.4) 0%, transparent 50%);
  pointer-events: none;
}
.section-navy .container { position: relative; z-index: 2; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .section-header p { color: rgba(255, 255, 255, 0.7); }

.section-header {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 60px; margin-bottom: 80px; align-items: end;
}
.section-header h2 { font-size: clamp(44px, 5.5vw, 78px); font-weight: 900; line-height: 1; padding-top: 0.1em; }
.section-header h2 .gold { color: var(--gold); }
.section-header p {
  font-size: 17px; color: var(--navy); opacity: 0.75;
  max-width: 480px; margin-top: 24px; font-weight: 400;
}

/* ===== SERVICES LIST ===== */
.services-list { border-top: 3px solid var(--navy); }
.service-row {
  display: grid; grid-template-columns: 90px 1.4fr 2fr 80px;
  gap: 40px; padding: 44px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center; transition: all 0.4s var(--ease); cursor: pointer;
}
.service-row:hover { padding-left: 24px; background: var(--cream); }
.service-num {
  font-size: 16px; color: var(--gold);
  font-weight: 800; letter-spacing: 0.05em;
}
.service-title {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
}
.service-desc {
  font-size: 15px; color: var(--navy);
  opacity: 0.75; line-height: 1.6; font-weight: 400;
}
.service-arrow {
  font-size: 32px; text-align: right;
  color: var(--navy); font-weight: 300;
  transition: all 0.4s var(--ease);
}
.service-row:hover .service-arrow { transform: translateX(8px); color: var(--gold); }

/* ===== NEW: Service card grid (homepage) ===== */
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  padding: 40px 32px;
  text-decoration: none;
  color: var(--navy);
  display: block;
  transition: all 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px -20px rgba(23, 39, 71, 0.15);
  opacity: 1;
  border-top-color: var(--navy);
}
.service-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--navy);
  opacity: 0.75;
  margin-bottom: 24px;
}
.service-card-arrow {
  font-size: 20px;
  font-weight: 300;
  color: var(--navy);
  transition: all 0.4s var(--ease);
  display: inline-block;
}
.service-card:hover .service-card-arrow {
  transform: translateX(6px);
  color: var(--gold);
}
@media (max-width: 968px) {
  .services-cards { grid-template-columns: 1fr; gap: 16px; }
}
/* ===== SERVICE DETAIL BLOCKS ===== */
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 80px 0; border-bottom: 1px solid var(--rule);
}
.service-detail:nth-child(even) > .service-detail-image { order: -1; }
.service-detail-image {
  aspect-ratio: 4/3; background: var(--blue);
  border: 5px solid var(--white); box-shadow: var(--shadow);
  overflow: hidden;
}
.service-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-num {
  font-size: 14px; color: var(--gold);
  font-weight: 800; letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.service-detail h2 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 24px; font-weight: 900;
}
.service-detail p {
  font-size: 16px; color: var(--navy);
  opacity: 0.8; line-height: 1.7;
  margin-bottom: 24px;
}
.service-detail ul { list-style: none; padding: 0; }
.service-detail li {
  font-size: 14px; padding: 8px 0 8px 24px;
  position: relative; color: var(--navy); opacity: 0.8;
  font-weight: 500;
}
.service-detail li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 12px; height: 2px; background: var(--gold);
}

/* ===== WHY GRID ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item { border-top: 3px solid var(--gold); padding: 32px 24px 24px 0; }
.section-navy .why-item { border-top-color: var(--gold); }
.why-num {
  font-size: 13px; color: var(--gold);
  letter-spacing: 0.15em; margin-bottom: 24px;
  font-weight: 800; text-transform: uppercase;
}
.why-item h3 { font-size: 30px; font-weight: 900; margin-bottom: 16px; text-transform: uppercase; }
.why-item p {
  font-size: 15px; line-height: 1.7; font-weight: 400;
  color: var(--navy); opacity: 0.75;
}
.section-navy .why-item p { color: rgba(255, 255, 255, 0.75); opacity: 1; }

/* ===== PROCESS ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step {
  position: relative; padding: 36px 28px;
  background: var(--cream); border-bottom: 4px solid var(--gold);
  transition: transform 0.4s var(--ease);
}
.process-step:hover { transform: translateY(-6px); }
.process-step:nth-child(even) { margin-top: 40px; }
.step-num {
  font-size: 64px; color: var(--navy);
  font-weight: 900; line-height: 1;
  margin-bottom: 24px; display: inline-block;
}
.process-step h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; text-transform: uppercase; }
.process-step p { font-size: 14px; color: var(--navy); opacity: 0.75; line-height: 1.6; font-weight: 400; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.gallery-item {
  position: relative; overflow: hidden;
  background: var(--blue); border: 4px solid var(--white);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.wide { grid-column: span 7; aspect-ratio: 4/3; }
.gallery-item.medium { grid-column: span 5; aspect-ratio: 4/3; }
.gallery-item.square { grid-column: span 4; aspect-ratio: 1/1; }
.gallery-item.tall { grid-column: span 4; aspect-ratio: 3/4; }
.gallery-caption {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--gold); color: var(--navy);
  padding: 8px 14px; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800;
}

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial {
  background: var(--cream); padding: 44px 36px;
  border-top: 4px solid var(--gold); position: relative;
}
.testimonial-text {
  font-size: 16px; line-height: 1.6;
  margin-bottom: 28px; color: var(--navy); font-weight: 500;
}
.testimonial-author {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue);
  border-top: 1px solid var(--rule); padding-top: 18px;
}
.stars { color: var(--gold); margin-bottom: 16px; font-size: 16px; letter-spacing: 2px; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--navy); color: var(--white);
  padding: 100px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(240, 184, 85, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 {
  color: var(--white); font-size: clamp(40px, 5vw, 64px);
  margin-bottom: 20px; font-weight: 900;
}
.cta-band h2 .gold { color: var(--gold); }
.cta-band p {
  font-size: 18px; color: rgba(255, 255, 255, 0.8);
  max-width: 560px; margin: 0 auto 40px;
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 900; margin-bottom: 32px;
}
.contact-info h2 .gold { color: var(--gold); }
.contact-info p {
  font-size: 17px; color: var(--navy); opacity: 0.75;
  margin-bottom: 48px; max-width: 440px;
  line-height: 1.6; font-weight: 400;
}
.contact-detail {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
  display: grid; grid-template-columns: 140px 1fr; gap: 20px;
}
.contact-detail-label {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold); font-weight: 800;
}
.contact-detail-value { font-size: 19px; color: var(--navy); font-weight: 700; }
.form {
  background: var(--cream); padding: 56px 48px;
  color: var(--navy); border-bottom: 6px solid var(--gold);
}
.form h3 { font-size: 26px; margin-bottom: 32px; font-weight: 900; text-transform: uppercase; }
.form-row { margin-bottom: 24px; }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label {
  display: block; font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 0; border: none;
  border-bottom: 2px solid var(--rule);
  font-family: 'Outfit', sans-serif;
  font-size: 16px; background: transparent;
  color: var(--navy); font-weight: 500;
  transition: border-color 0.3s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-bottom-color: var(--gold);
}
.form textarea { resize: vertical; min-height: 80px; }
.form button { width: 100%; margin-top: 16px; }

/* ===== ABOUT VALUES ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value-card {
  padding: 48px 36px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  transition: transform 0.4s var(--ease);
}
.value-card:hover { transform: translateY(-6px); }
.value-card h3 {
  font-size: 26px; font-weight: 900;
  margin-bottom: 16px; text-transform: uppercase;
}
.value-card p {
  color: var(--navy); opacity: 0.75;
  font-size: 15px; line-height: 1.7;
}

/* ===== FOOTER ===== */
footer { background: var(--white); border-top: 6px solid var(--navy); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand .logo { margin-bottom: 24px; }
.footer-brand p { color: var(--navy); opacity: 0.7; font-size: 14px; max-width: 320px; line-height: 1.6; font-weight: 400; }
.footer-col h4 {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; color: var(--navy); opacity: 0.8; font-weight: 500; }
.footer-bottom {
  border-top: 1px solid var(--rule); padding-top: 32px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  opacity: 0.7; font-weight: 700;
  flex-wrap: wrap; gap: 16px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 1s var(--ease) backwards; }
.hero-text > * { animation: fadeUp 1s var(--ease) backwards; }
.hero-text .eyebrow { animation-delay: 0.1s; }
.hero-text h1 { animation-delay: 0.25s; }
.hero-text .hero-sub { animation-delay: 0.4s; }
.hero-text .hero-buttons { animation-delay: 0.55s; }
.hero-image { animation: fadeUp 1.2s var(--ease) 0.3s backwards; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .container { padding: 0 24px; }
  .nav { padding: 16px 24px; }
  .nav-links, .nav-phone { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 24px; gap: 20px; border-bottom: 1px solid var(--rule);
  }
  .hero { padding: 130px 0 80px; }
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-tag { padding: 14px 20px; font-size: 12px; letter-spacing: 0.12em; }
  .page-header { padding: 130px 0 70px; }
  .tagline-item { font-size: 28px; }
  section { padding: 80px 0; }
  .section-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
  .service-row { grid-template-columns: 50px 1fr 40px; gap: 20px; padding: 28px 0; }
  .service-desc { display: none; }
  .service-detail { grid-template-columns: 1fr; gap: 40px; padding: 50px 0; }
  .service-detail:nth-child(even) > .service-detail-image { order: 0; }
  .why-grid, .process-grid, .testimonial-grid, .values-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-step:nth-child(even) { margin-top: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide, .gallery-item.medium, .gallery-item.square, .gallery-item.tall {
    grid-column: span 1; aspect-ratio: 4/3;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .form { padding: 40px 28px; }
  .form-row.split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .trust-items { justify-content: center; }
}
