/* 
  Bochnakian - Premium Stone & Terrazzo Design System
  Theme: Warm Limestone, Basalt & Terracotta (Light Theme)
  Colors: Limestone Background (#fbfaf7), Basalt Charcoal (#1a1f1d), Terracotta (#b86d49), Brushed Brass (#cda669)
*/

:root {
  --bg-dark: #fbfaf7;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfcfb;
  --border-light: #e8e6df;
  --border-brass: #cda669;
  
  --primary-terracotta: #b86d49;
  --primary-brass: #cda669;
  --accent-basalt: #1a1f1d;
  
  --stone-shadow: 0 10px 35px rgba(112, 110, 104, 0.06);
  --hover-shadow: 0 15px 45px rgba(184, 109, 73, 0.1);
  
  --text-main: #2e3532;
  --text-muted: #706e68;
  --text-light: #a3a19b;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, Cambria, "Times New Roman", Times, serif;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Travertine Texture Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(205, 166, 105, 0.02) 0%, rgba(251, 250, 247, 0.98) 100%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4 {
  color: var(--accent-basalt);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-terracotta) 0%, #823e20 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stone-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--stone-shadow);
  transition: var(--transition-normal);
  overflow: hidden;
}

.stone-panel:hover {
  border-color: var(--border-brass);
  box-shadow: var(--hover-shadow);
  transform: translateY(-3px);
}

/* Container Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Menu Styling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-normal);
  padding: 1.75rem 0;
}

.site-header.scrolled {
  padding: 0.85rem 0;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.header-wrapper {
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent-basalt);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-logo svg {
  height: 28px;
  width: auto;
}

.brand-logo .brand-highlight {
  color: var(--primary-terracotta);
}

nav {
  display: flex;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-basalt);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--primary-terracotta);
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--primary-terracotta);
  color: #ffffff;
  border: 1px solid var(--primary-terracotta);
}

.btn-primary:hover {
  background: #a05a39;
  border-color: #a05a39;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 109, 73, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-basalt);
  border: 1px solid var(--accent-basalt);
}

.btn-secondary:hover {
  background: var(--accent-basalt);
  color: #ffffff;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-basalt);
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero-section {
  padding: 11rem 0 6rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: #f4efea;
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-terracotta);
}

.badge-dot {
  width: 5px;
  height: 5px;
  background-color: var(--primary-terracotta);
  border-radius: 50%;
}

.hero-content h1 {
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-stats {
  display: flex;
  gap: 3.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-basalt);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Showcase Panel */
.hero-showcase-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: var(--stone-shadow);
  transform: rotate(-1deg);
  transition: var(--transition-normal);
}

.hero-showcase-panel:hover {
  transform: rotate(0deg) scale(1.01);
  border-color: var(--border-brass);
}

.showcase-image-box {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-light);
}

.showcase-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-showcase-panel:hover .showcase-image-box img {
  transform: scale(1.04);
}

.showcase-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-basalt);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Section Common */
section {
  padding: 6rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.section-header h1,
.section-header h2,
.section-header h3,
.section-header p {
  width: 100%;
  align-self: stretch;
}

.section-header h2 {
  line-height: 1.2;
}

/* Portfolio Masonry/Asymmetric Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.portfolio-item {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portfolio-item.col-4 {
  grid-column: span 4;
}

.portfolio-item.col-8 {
  grid-column: span 8;
}

.portfolio-img-wrapper {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative;
  box-shadow: var(--stone-shadow);
  transition: var(--transition-normal);
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-img-wrapper:hover img {
  transform: scale(1.03);
}

.portfolio-item h3 {
  font-size: 1.4rem;
  color: var(--accent-basalt);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.portfolio-location {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-terracotta);
  font-weight: 700;
}

.portfolio-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Materials & Standards Columns */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.standard-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: #ffffff;
  box-shadow: var(--stone-shadow);
  transition: var(--transition-normal);
}

.standard-card:hover {
  border-color: var(--border-brass);
  box-shadow: var(--hover-shadow);
  transform: translateY(-3px);
}

.standard-icon {
  width: 48px;
  height: 48px;
  background: #fbfaf7;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-terracotta);
  margin-bottom: 0.5rem;
}

.standard-icon svg {
  width: 22px;
  height: 22px;
}

.standard-card h3 {
  font-size: 1.3rem;
  color: var(--accent-basalt);
}

.standard-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Call To Action Box */
.cta-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--stone-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-terracotta) 0%, var(--primary-brass) 100%);
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  max-width: 700px;
}

.cta-box p {
  max-width: 520px;
  font-size: 1.05rem;
}

/* Legal Document View Structure */
.legal-container {
  max-width: 820px;
  margin: 10rem auto 8rem auto;
  padding: 0 1.5rem;
}

.legal-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.space-y-12 > * + * {
  margin-top: 3.5rem;
}

.space-y-6 > * + * {
  margin-top: 1.75rem;
}

.legal-section-title {
  font-size: 1.4rem;
  color: var(--accent-basalt);
  margin-bottom: 1rem;
}

.legal-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-main);
}

.legal-list {
  list-style: none;
  padding-left: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-list li {
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
}

.legal-list li::before {
  content: "•";
  color: var(--primary-terracotta);
  font-weight: bold;
  display: inline-block;
  width: 1.25em;
  margin-left: -1.25em;
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
}

.contact-info-panel {
  padding: 3rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--stone-shadow);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  background: #fbfaf7;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-terracotta);
  flex-shrink: 0;
}

.contact-icon-box svg {
  width: 20px;
  height: 20px;
}

.contact-text-box {
  flex: 1;
  min-width: 0;
}

.contact-info-header {
  display: block;
  width: 100%;
  align-self: stretch;
}

.contact-info-header h3 {
  margin-bottom: 0.5rem;
}

.contact-info-header p,
.contact-text-box p {
  width: 100%;
}

.contact-text-box h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.contact-text-box p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-main);
}

.contact-form-panel {
  padding: 3rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--stone-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  background: #fbfaf7;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--accent-basalt);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-terracotta);
  background: #ffffff;
  box-shadow: 0 0 14px rgba(184, 109, 73, 0.08);
}

/* Site Footer */
.site-footer {
  background: #111413;
  color: #e5e5e0;
  border-top: 1px solid var(--border-light);
  padding: 5.5rem 0 3.5rem 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-brass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.45fr 0.45fr;
  gap: 4rem;
  margin-bottom: 4.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand .brand-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 340px;
  font-size: 0.88rem;
  color: #c4c4be;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: #b0b0a8;
}

.footer-links a:hover {
  color: var(--primary-brass);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal-links {
  display: flex;
  gap: 2.2rem;
}

.footer-legal-links a {
  font-size: 0.75rem;
  color: #8c8c85;
}

.footer-legal-links a:hover {
  color: var(--primary-brass);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
  .portfolio-item {
    grid-column: span 6 !important;
  }
  .standards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100vh;
    background: rgba(251, 250, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-light);
    z-index: 99;
    transition: var(--transition-normal);
    padding: 6.5rem 2.2rem 2.2rem 2.2rem;
    flex-direction: column;
    transform: translateX(100%);
  }
  
  nav.active {
    transform: translateX(0);
  }
  
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.2rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
  }
  
  .btn-header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  
  .badge-tag {
    align-self: center;
    white-space: normal;
    text-align: center;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
    max-width: 320px;
  }
  
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .hero-showcase-panel {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transform: none;
  }
  
  .cta-box {
    padding: 3rem 1.5rem;
  }

  .contact-info-panel, .contact-form-panel {
    padding: 2.5rem 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-item {
    grid-column: span 1 !important;
  }
  
  .portfolio-img-wrapper {
    height: 320px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand {
    align-items: center;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .footer-title, .footer-links {
    text-align: center;
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions a {
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .contact-info-panel, .contact-form-panel {
    padding: 1.75rem;
  }
  .cta-box {
    padding: 3rem 1.5rem;
  }
}
