/* Google Fonts: Playfair Display + Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* Framer style Minimalist Deep Dark theme */
  --bg-color: #050505; /* True almost-black */
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  
  --text-main: #f5f5f5;
  --text-muted: #888888;
  
  --accent-wood: #d9ad82; /* Lighter, elegant oak */
  --accent-wood-hover: #b8916b;
  
  --glass-bg: rgba(5, 5, 5, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Slower, smoother Framer curve */
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-muted);
}

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

ul {
  list-style: none;
}

/* Reusable Components */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section {
  padding: 12rem 0; /* Massive whitespace padding */
}

.title-wrap {
  text-align: center;
  margin-bottom: 6rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.section-title {
  font-size: 4rem; /* Larger sizing */
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

/* Buttons (Pill shaped for Framer look) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.8rem;
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  border-radius: 100px; /* Pill shape */
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(0);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.btn:hover {
  border-color: var(--accent-wood);
  color: var(--accent-wood);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(217,173,130, 0.2);
}

.btn.primary {
  background-color: var(--text-main);
  color: var(--bg-color);
  border: none;
}

.btn.primary:hover {
  background-color: var(--accent-wood);
  color: var(--bg-color);
  box-shadow: 0 15px 35px -10px rgba(217,173,130, 0.4);
}

/* Animations - Reveal Elements */
.reveal {
  /* Visible by default for safety */
  opacity: 1;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Navigation - Minimalist */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent-wood);
  font-style: italic;
}

.nav-menu {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.4s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

/* Hamburger menu (Mobile) */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.bar {
  display: block;
  width: 28px;
  height: 1px; /* Thinner */
  margin: 6px auto;
  transition: var(--transition);
  background-color: var(--text-main);
}

/* Framer-Style Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.8) 100%);
  z-index: -1;
}

/* Core Hero Background Image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-image: url('../images/hero_wooden_house_scandinavia.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  display: none; /* Removed heavy black gradients */
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  padding: 0 2rem;
  z-index: 10;
}

.hero-subtitle {
  color: var(--text-muted);
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  margin-bottom: 2rem;
  display: block;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-title {
  font-size: 6.5rem; /* Massive typography */
  line-height: 1.05;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
  color: var(--text-main);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title span {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-wood);
  display: inline-block;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  color: #e0e0e0;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Section - Minimal List */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 0; /* Removing gap, using borders */
  margin-top: 5rem;
  border-top: 1px solid var(--glass-border);
}

.feature-card {
  display: grid;
  grid-template-columns: 100px 1fr 2fr; /* Icon, Title, Description */
  padding: 4rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
  background: transparent;
  align-items: center;
}

.feature-card:hover {
  background-color: var(--bg-secondary);
  padding-left: 3rem; /* Small shift */
}

.feature-icon {
  font-size: 2rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  color: var(--accent-wood);
}

.feature-card h3 {
  font-size: 2rem;
  font-weight: 400;
}

.feature-card p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
}

/* About Snippet Section */
.about-snippet {
  background-color: var(--bg-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-img {
  width: 100%;
  height: 800px;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.about-img-wrap:hover .about-img {
  transform: scale(1.03);
}

.about-experience {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--bg-color);
  padding: 2.5rem 3rem 0 0;
  border-top-right-radius: 20px;
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--text-main);
  display: block;
}

.exp-text {
  color: var(--accent-wood);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-text h2 {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.about-text p {
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.list-check {
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.list-check li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 300;
}
.list-check li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-wood);
}

/* CTA Footer Section */
.cta-section {
  text-align: center;
  padding: 12rem 0;
  background-color: var(--bg-secondary); /* Solid minimal bg */
  border-radius: 40px;
  margin: 0 2rem 4rem; /* Floating box effect */
}

.cta-section h2 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  margin-bottom: 3.5rem;
  font-size: 1.25rem;
}

/* Footer */
footer {
  background-color: var(--bg-color);
  padding: 8rem 0 3rem;
  border-top: 1px solid var(--glass-border);
}

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

.footer-col h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a, .footer-col p, .footer-col li {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
  font-size: 0.85rem;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title { font-size: 5rem; }
  .feature-card { grid-template-columns: 80px 1fr; gap: 2rem; padding: 3rem 1rem;}
  .feature-card p { grid-column: 1 / 3; }
  .about-grid { gap: 4rem; }
  .about-text h2 { font-size: 3rem; }
  .cta-section h2 { font-size: 3.5rem; }
}

@media (max-width: 992px) {
  .container { padding: 0 2rem; }
  .section { padding: 8rem 0; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem;}
  .list-check { grid-template-columns: 1fr; }
  .cta-section { margin: 0 1rem 3rem; border-radius: 20px; padding: 8rem 1rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 3.5rem; }
  .header { padding: 1.5rem 0; }
  .hamburger { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link { font-size: 1.5rem; }
  
  .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .feature-card { grid-template-columns: 1fr; text-align: center; }
  .feature-card p { grid-column: 1; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 3rem; }
  
  .hero-bg { width: 100vw; height: 100vh; border-radius: 0; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
