/* CSS Reset and Variable definitions */
:root {
  --bg-light: #faf8f5;
  --bg-card: #ffffff;
  --primary-slate: #343f44;
  --primary-gold: #cfa054;
  --text-main: #272f32;
  --text-muted: #727e82;
  --border-light: #e6e0d8;
  --stone-shadow: 0 10px 30px rgba(52, 63, 68, 0.03);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 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-light);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(207, 160, 84, 0.02) 0%, rgba(250, 248, 245, 0.98) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Typography styling */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-muted);
}

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

.text-gradient {
  background: linear-gradient(135deg, var(--primary-slate) 0%, #1e2629 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 6px;
}

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

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: #f5f2eb;
  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-slate);
}

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

.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 {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(52, 63, 68, 0.05);
}

/* Header & Nav */
.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(250, 248, 245, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

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

.header-wrapper {
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.site-header.scrolled .header-inner,
.site-header.always-scrolled .header-inner {
  border-bottom-color: transparent;
  padding-bottom: 0;
}

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

.brand-logo svg {
  height: 24px;
  width: auto;
  color: var(--primary-gold);
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-slate);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary-slate);
  color: #ffffff;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--primary-slate);
  box-shadow: 0 4px 15px rgba(52, 63, 68, 0.15);
}

.btn-primary:hover {
  background: #1e2629;
  border-color: #1e2629;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 63, 68, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  color: var(--text-main);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #f6f2ea;
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

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

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

.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;
}

.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.2rem;
  font-weight: 500;
  line-height: 1;
}

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

.hero-showcase-panel {
  width: 100%;
  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.02);
}

.showcase-image-box {
  width: 100%;
  height: 380px;
  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;
}

.showcase-label {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.showcase-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.showcase-location {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Sections 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;
}

/* Asymmetric Grid Slabs */
.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.tall {
  grid-column: span 5;
}

.portfolio-item.wide {
  grid-column: span 7;
}

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

.portfolio-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.portfolio-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portfolio-caption {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.portfolio-tags {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-gold);
}

/* Philosophy standards section */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

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

.standard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(52, 63, 68, 0.06);
}

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

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

.standard-card h3 {
  font-size: 1.4rem;
}

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

/* Call to Action Box */
.cta-container {
  padding: 2rem 0 6rem 0;
}

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

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

.cta-box h2 {
  max-width: 600px;
}

.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);
}

.legal-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.legal-section-title {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.legal-list {
  list-style-type: square;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

/* Contact Page Grid & Elements */
.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-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-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: #faf8f5;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  flex-shrink: 0;
}

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

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

.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;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(207, 160, 84, 0.04);
}

/* Footer Section */
.site-footer {
  background: #1e2629;
  color: #eae3dc;
  padding: 5rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

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

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a4b0b5;
  max-width: 320px;
}

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

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

.footer-links a {
  font-size: 0.9rem;
  color: #a4b0b5;
}

.footer-links a:hover {
  color: #ffffff;
}

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

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

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

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

/* 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(250, 248, 245, 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;
  }

  h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .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;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-item {
    grid-column: span 1 !important;
  }
  
  .portfolio-img-wrapper {
    height: 320px;
  }
  
  .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;
  }
  
  .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;
  }
  .contact-info-panel, .contact-form-panel {
    padding: 1.75rem;
  }
}
