/* ==========================================================================
   CozyWeb Studio - "Warm Barista" Brand Theme
   ========================================================================== */

:root {
  --bg-cream: #FDF5E6;
  --text-espresso: #3E2723;
  --accent-terracotta: #C17257;
  --accent-sand: #D2B48C;
  --font-headings: 'Quicksand', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Added Dark Navbar Theme Variables */
  --nav-bg-dark: #1E1E24;
  --nav-text-light: #F7F4EF;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-cream);
  color: var(--text-espresso);
  font-family: var(--font-body);
  line-height: 1.6;
  padding: 0; /* Changed from 0 2rem to allow full-width fixed navbar background */
}

/* Typography styling */
h1, h2, h3 {
  font-family: var(--font-headings);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--text-espresso);
  transition: all 0.3s ease;
}

/* ==========================================================================
   Navigation Bar (Updated for White Logo Visibility)
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 4%;
  background-color: var(--nav-bg-dark); /* Darkened to contrast white logo text */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Fixed Logo Dimensions */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 110px; /* Increased to fix tiny appearance */
  width: auto;
  display: block;
  object-fit: contain;
  padding: 5px 0;
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nav-text-light);
}

.accent-text {
  color: var(--accent-terracotta);
}

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

.nav-links a {
  color: var(--nav-text-light); /* Changed link text to white/cream */
  font-family: var(--font-headings);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent-sand); /* Soft warm hover effect against dark banner */
}

/* Navbar specific layout button overriding */
.navbar .btn-primary {
  background-color: var(--accent-terracotta);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  background-color: var(--accent-terracotta);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--text-espresso);
  color: var(--bg-cream);
}

.btn-secondary {
  border: 2px solid var(--text-espresso);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-left: 1rem;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: var(--text-espresso);
  color: var(--bg-cream);
}

/* ==========================================================================
   Main Content Layout Wrapper
   ========================================================================== */
main {
  display: block;
  padding: 120px 2rem 0 2rem; /* Creates top cushion to prevent fixed navbar overlapping hero contents */
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 4rem auto;
  min-height: 50vh;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-visual {
  width: 100%;
  height: 400px;
}

/* Hero Visual Box Image/Placeholder Setup */
.image-placeholder,
.showcase-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(62, 39, 35, 0.05);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
  max-width: 1200px;
  margin: 6rem auto;
}

.services h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.services h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent-terracotta);
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(62, 39, 35, 0.03);
  transition: transform 0.3s ease;
  border: 1px solid rgba(210, 180, 140, 0.2);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-espresso);
}

/* ==========================================================================
   Our Approach Layout Section 
   ========================================================================== */
.approach {
  max-width: 1200px;
  margin: 8rem auto;
  padding: 2rem 0;
}

.approach-container {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  align-items: center;
  gap: 5rem;
}

.section-badge {
  display: inline-block;
  color: var(--accent-terracotta);
  font-family: var(--font-headings);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.approach-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.approach-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-espresso);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.approach-content p {
  margin-bottom: 1.2rem;
  opacity: 0.9;
  font-size: 1rem;
}

.approach-content strong {
  color: var(--accent-terracotta);
}

.approach-visual {
  width: 100%;
  height: 480px;
}

/* Approach Photo Frame Asset Setup */
.approach-image-placeholder,
.philosophy-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 25px 50px rgba(62, 39, 35, 0.06);
}

/* ==========================================================================
   Portfolio Showcase Styles
   ========================================================================== */
.portfolio-section {
  max-width: 1300px;
  margin: 8rem auto;
  padding: 0;
}

.section-intro {
  margin-bottom: 5rem;
  max-width: 650px;
}

.section-tag {
  color: #B87355; 
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-intro h2 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #2E2520;
  margin-bottom: 1.5rem;
}

.section-intro p {
  color: #6E6560;
  font-size: 1.1rem;
}

/* Asymmetric Grid Framework */
.portfolio-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
}

/* Makes the main lodge feature stretch gracefully across the layout matrix */
.large-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.portfolio-card {
  background: #FFFDFB;
  border: 1px solid rgba(184, 115, 85, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(46, 37, 32, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(46, 37, 32, 0.08);
}

.card-visual {
  position: relative;
  height: 380px;
  background-color: #F7F3F0;
  overflow: hidden;
}

/* Control height for the large layout version */
.large-card .card-visual {
  height: 460px;
}

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

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

/* Elegant floating industry badge */
.card-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background-color: rgba(46, 37, 32, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  z-index: 5;
}

.card-meta {
  padding: 2.5rem;
}

.large-card .card-meta {
  padding-left: 0;
  padding-right: 2.5rem;
}

.card-meta h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2E2520;
  margin-bottom: 1rem;
}

.card-meta p {
  color: #6E6560;
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.project-link {
  font-weight: 700;
  color: #B87355;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link span {
  transition: transform 0.2s ease;
}

.portfolio-card:hover .project-link span {
  transform: translateX(4px);
}

/* ==========================================================================
   Pricing Section Layout - Fixed & Spaced
   ========================================================================== */
.pricing {
  max-width: 1200px;
  margin: 6rem auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.pricing-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 5rem;
}

.price-card {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(62, 39, 35, 0.02);
  border: 1px solid rgba(210, 180, 140, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
}

/* Emphasize the primary package option */
.price-card.popular {
  border: 2px solid var(--accent-terracotta);
  box-shadow: 0 20px 40px rgba(193, 114, 87, 0.08);
}

/* Soft card interaction animation */
.price-card:hover {
  transform: translateY(-5px);
}

.price-card.popular:hover {
  transform: scale(1.02) translateY(-5px);
}

.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-terracotta);
  color: white;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-family: var(--font-headings);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-espresso);
  margin-bottom: 1rem;
}

.price-period {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
}

.price-description {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.price-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.price-features li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.5rem;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-terracotta);
  font-weight: bold;
}

/* Card Button Formatting */
.btn-primary-card {
  background-color: var(--accent-terracotta);
  color: white;
  text-align: center;
  padding: 0.8rem;
  border-radius: 50px;
  font-weight: 600;
}

.btn-primary-card:hover {
  background-color: var(--text-espresso);
}

.btn-secondary-card {
  border: 2px solid var(--text-espresso);
  color: var(--text-espresso);
  text-align: center;
  padding: 0.8rem;
  border-radius: 50px;
  font-weight: 600;
}

.btn-secondary-card:hover {
  background-color: var(--text-espresso);
  color: var(--bg-cream);
}

/* Consultation Box Banner styling */
.consultation-box {
  background-color: var(--text-espresso);
  color: var(--bg-cream);
  padding: 3.5rem;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.consultation-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--bg-cream);
}

.consultation-text p {
  opacity: 0.8;
  max-width: 600px;
}

/* ==========================================================================
   Contact Form Section Styling 
   ========================================================================== */
.contact-section {
  max-width: 800px;
  margin: 8rem auto 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-section p {
  margin-bottom: 3rem;
  opacity: 0.8;
}

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

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(62, 39, 35, 0.15);
  background-color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-espresso);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-terracotta);
}

.contact-form button {
  align-self: center;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  padding: 0.8rem 2.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  text-align: center;
  padding: 4rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(62, 39, 35, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ==========================================================================
   Mobile Adaptive Responsiveness 
   ========================================================================== */
@media (max-width: 950px) {
  .portfolio-matrix { grid-template-columns: 1fr; gap: 2.5rem; }
  .large-card { grid-column: span 1; grid-template-columns: 1fr; }
  .large-card .card-meta { padding-left: 2rem; padding-right: 2rem; }
  .card-visual, .large-card .card-visual { height: 280px; }
}

@media (max-width: 900px) {
  .approach-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .approach-visual {
    order: 2; /* Drops the photo below text on small screens */
  }
  .approach-image-placeholder,
  .philosophy-photo {
    height: 320px;
  }
}

@media (max-width: 768px) {
  body { padding: 0; }
  
  /* 1. Adjust the main content cushion for smaller headers */
  main { padding: 160px 1rem 0 1rem; }
  
  /* 2. Make the navbar stack its items vertically */
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 4%;
  }
  
  /* 3. Make the links row wrap neatly or stack on a mobile screen */
  .nav-links {
    display: flex; /* Overriding the old "display: none" */
    flex-direction: row; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    padding: 0;
  }
  
  .nav-links li a {
    font-size: 0.95rem; /* Slighting smaller text for mobile fingers */
  }

  /* 4. Ensure buttons don't clip on small widths */
  .hero { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .btn-secondary { margin-left: 0; margin-top: 1rem; display: inline-block; }
  .consultation-box { flex-direction: column; text-align: center; padding: 2rem; gap: 1.5rem; }
}