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

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Warm Terracotta Theme (Light Bg Mandatory) */
  --bg: #fdf0e0; /* Warm sand */
  --text: #1a1a2e;
  --text-muted: #5d4037;
  --accent: #d84315; /* Clay red */
  --accent-light: #ff7043;
  --surface: #ffffff;
  --surface-alt: #fbe9e7;
  --border: #d7ccc8;

  --radius-sm: 4px; /* Sharp rectangular preference */
  --radius-md: 0px; /* Sharp buttons requested */
  --radius-lg: 0px;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --shadow-glass: 0 8px 32px 0 rgba(216, 67, 21, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(216, 67, 21, 0.2);

  --nav-height: 70px;
  --bottom-nav-height: 80px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 15px; /* High density requirement */
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  background-attachment: fixed;
}

/* Mesh Gradient Simulation (Apple-style) */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 0% 0%, hsla(20, 100%, 90%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(10, 100%, 85%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(30, 100%, 90%, 1) 0, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1400px; /* Wider for high density */
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

section {
  padding: 80px 0; /* 70-90px vertical requested */
  position: relative;
  background: var(--bg);
}

.section-alt {
  background: var(--surface-alt);
}

.section-accent {
  background: var(--accent);
  color: #fff;
}

.section-accent h2, .section-accent h3, .section-accent p {
  color: #fff;
}

/* Paper Tear Edge Divider */
.paper-tear {
  height: 40px;
  width: 100%;
  background: var(--surface);
  clip-path: polygon(0% 0%, 5% 40%, 10% 10%, 15% 50%, 20% 20%, 25% 60%, 30% 15%, 35% 45%, 40% 5%, 45% 55%, 50% 10%, 55% 40%, 60% 0%, 65% 50%, 70% 20%, 75% 60%, 80% 10%, 85% 45%, 90% 5%, 95% 55%, 100% 0%, 100% 100%, 0% 100%);
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.paper-tear-bottom {
  height: 40px;
  width: 100%;
  background: var(--surface);
  clip-path: polygon(0% 100%, 5% 60%, 10% 90%, 15% 50%, 20% 80%, 25% 40%, 30% 85%, 35% 55%, 40% 95%, 45% 45%, 50% 90%, 55% 60%, 60% 100%, 65% 50%, 70% 80%, 75% 40%, 80% 90%, 85% 55%, 90% 95%, 95% 45%, 100% 100%, 100% 0%, 0% 0%);
  margin-bottom: -40px;
  position: relative;
  z-index: 2;
}

/* === NAVIGATION === */
/* Top Nav (Fixed with Blur) */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.top-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: none; /* Desktop only */
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 32px;
  }
  .nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .nav-link:hover, .nav-link.active {
    color: var(--accent);
  }
}

/* Bottom Nav Bar (Mobile App Style - Mandatory Layout) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--bottom-nav-height);
  background: var(--surface);
  border-top: 2px solid var(--accent);
  z-index: 1001;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  flex: 1;
  height: 100%;
}

.bottom-nav-item i {
  font-size: 1.5rem;
}

.bottom-nav-item span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.bottom-nav-item.active {
  color: var(--accent);
}

main {
  padding-top: var(--nav-height);
  padding-bottom: var(--bottom-nav-height);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 3px solid var(--accent); /* Sharp rectangular with 3px border */
  background: transparent;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.btn-white {
  border-color: #fff;
  color: #fff;
}

.btn-white:hover {
  background: #fff;
  color: var(--accent);
}

/* === HERO === */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Cinematic letterbox via pseudo elements */
}

.hero::before, .hero::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 50px;
  background: #000;
  z-index: 10;
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Subtle parallax */
  filter: brightness(0.6);
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* === METRO / WINDOWS TILES ARCHETYPE === */
.metro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
  padding: 20px 0;
}

.tile {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.tile:hover {
  transform: scale(0.98);
}

.tile h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.2rem;
  z-index: 2;
}

.tile p {
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2;
  opacity: 0.9;
}

.tile-1 { background: #e64a19; grid-column: span 2; grid-row: span 2; }
.tile-2 { background: #fb8c00; }
.tile-3 { background: #f4511e; }
.tile-4 { background: #bf360c; grid-row: span 2; }
.tile-5 { background: #ff7043; }

@media (min-width: 768px) {
  .metro-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
  }
}

/* === MASONRY GALLERIES (CSS COLUMNS) === */
.masonry-container {
  columns: 1;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .masonry-container { columns: 2; }
}

@media (min-width: 1024px) {
  .masonry-container { columns: 3; }
}

/* === PULL-QUOTE RHYTHM === */
.pull-quote-band {
  background: var(--accent);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.pull-quote-band blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

/* === ROI CALCULATOR (Mandatory Interactive) === */
.calculator-box {
  background: var(--surface);
  border: 2px solid var(--accent);
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.calc-group {
  margin-bottom: 1.5rem;
}

.calc-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.calc-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.calc-input:focus {
  border-color: var(--accent);
}

.calc-result {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.result-number {
  display: block;
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent);
}

/* === MARQUEE === */
.marquee-wrapper {
  overflow: hidden;
  padding: 40px 0;
  background: var(--surface-alt);
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  display: inline-block;
  margin: 0 40px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--border);
  text-transform: uppercase;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === TESTIMONIALS (Minimal Text-only) === */
.testimonial-stack {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.testimonial-item:last-child {
  border-bottom: none;
}

.testimonial-content {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--accent);
}

/* === AWARDS BAR === */
.awards-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.award-item {
  text-align: center;
}

.award-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.award-label {
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* === FOOTER (Minimal Centered) === */
.footer {
  padding: 100px 0;
  background: var(--surface);
  text-align: center;
}

.footer-logo {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2rem;
}

.footer-socials a {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.footer-socials a:hover {
  color: var(--accent);
}

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

/* Breadcrumbs */
.breadcrumbs {
  padding: 20px 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 10px;
  color: var(--border);
}

/* Utility */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 3rem; }

@media (max-width: 767px) {
  section { padding: 60px 0; }
  .hero h1 { font-size: 2.5rem; }
}
