/*
Theme Name: Clean & Co Custom Theme
Description: Custom WordPress theme built from HTML mockup.
Author: Google Antigravity
Version: 1.0
*/

/* --- CSS Variables & Design System --- */
:root {
  /* Colors - Restoration Hardware inspired */
  --bg-color: #fcfcfc;
  --text-primary: #2a2a2a;
  --text-secondary: #5c5c5c;
  --accent-color: #d8cec4; /* Soft warm neutral for subtle highlights */
  --border-color: #eaeaea;
  --white: #ffffff;
  --overlay: rgba(0, 0, 0, 0.25);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-xxl: 10rem;
  
  /* Layout */
  --max-width: 1200px;
  --max-width-text: 700px;
  --transition: all 0.3s ease;
}

/* --- Base Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 300;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- Typography Classes --- */
.h1-display {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.h2-display {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.h3-display {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-sm);
}

.supporting-copy {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: var(--max-width-text);
  margin: 0 auto var(--space-md) auto;
}

.supporting-copy-left {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: var(--max-width-text);
  margin-bottom: var(--space-md);
}

.editorial-statement {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: var(--space-lg);
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
  border: 1px solid var(--text-primary);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--text-primary);
  color: var(--white);
}

.btn-primary {
  background: var(--text-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
}

.btn-white {
  border-color: var(--white);
  color: var(--white);
}

.btn-white:hover {
  background: var(--white);
  color: var(--text-primary);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.btn-link:hover {
  border-bottom-color: var(--text-primary);
}

/* --- Layout Components --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-padding {
  padding: var(--space-xxl) 0;
}

.text-center {
  text-align: center;
}

/* --- Header / Navigation --- */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: var(--transition);
}

header.scrolled {
  position: fixed;
  background: var(--white);
  padding: var(--space-sm) 0;
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Header colors when over images vs white background */
.header-transparent {
  color: var(--white);
}
.header-transparent .logo {
  display: flex;
  align-items: center;
  height: 85px;
}
.header-transparent .logo-img-white, .header-transparent .logo-img-brown {
  height: 100%;
  width: auto;
  transition: var(--transition);
}
.header-transparent .logo-img-brown {
  display: none;
}
.header-transparent .logo-img-white {
  display: block;
}
.header-transparent.scrolled .logo-img-white {
  display: none;
}
.header-transparent.scrolled .logo-img-brown {
  display: block;
}
.header-transparent .nav-links a {
  color: var(--white);
}
.header-transparent.scrolled {
  color: var(--text-primary);
}
.header-transparent.scrolled .nav-links a {
  color: var(--text-primary);
}

/* Footer Logo */
.footer-logo {
  display: block;
  height: 80px;
  margin-bottom: var(--space-md);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: currentColor;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-half {
  height: 85vh;
  justify-content: flex-start;
  text-align: left;
}

.hero-half .container {
  margin-top: var(--space-xl);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 25%),
    linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 70%);
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

.hero-half .hero-actions {
  justify-content: flex-start;
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* --- Services Cards (Home) --- */
.service-card {
  text-align: left;
  border: 1px solid var(--border-color);
  background: var(--white);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: translateY(-5px);
}

.service-image {
  height: 300px;
  width: 100%;
  object-fit: cover;
}

.service-content {
  padding: var(--space-md);
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.service-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

/* --- Features (Why Clean & Co) --- */
.feature-item {
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

/* --- Premium Lists (Service Details) --- */
.detail-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.detail-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.detail-card-header {
  padding: var(--space-md);
  text-align: center;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.detail-card-body {
  padding: var(--space-lg);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
}

.category-header svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-secondary);
}

.premium-list {
  list-style: none;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.premium-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  transition: var(--transition);
}

.premium-list li:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.premium-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8cec4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.premium-list strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* --- Interactive Toggle UI --- */
.toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.toggle-container {
  display: inline-flex;
  background: #f0ece1;
  border-radius: 50px;
  padding: 6px;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.06);
}

.toggle-btn {
  padding: 14px 40px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8c8276;
  background: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.toggle-btn:hover:not(.active) {
  color: var(--text-primary);
}

.toggle-btn.active {
  color: var(--white);
  background: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- Room Grid (2x2) --- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

/* Helper to hide elements */
.d-none {
  display: none !important;
}

/* --- Editorial Split Sections --- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 60vh;
}

.split-content {
  padding: var(--space-xxl);
}

/* --- Footer --- */
footer {
  background: var(--white);
  padding: var(--space-xl) 0 var(--space-md) 0;
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-col h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-md);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-md);
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--text-primary) !important;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .header-transparent .hamburger span {
    background-color: var(--white);
  }
  .header-transparent.scrolled .hamburger span {
    background-color: var(--text-primary);
  }
  
  .grid-3, .grid-2, .room-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .split-section {
    grid-template-columns: 1fr;
  }
  
  .split-content {
    padding: var(--space-xl) var(--space-md);
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: transparent;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}
