/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #2C3E50;
  --primary-light: #4A6B8A;
  --accent: #8B4513;
  --light-bg: #F8F5F2;
  --text-dark: #333333;
  --text-light: #777777;
  --white: #FFFFFF;
  --transition: all 0.3s ease;
  
  /* Animation variables */
  --stroke-width: 0.3;
  --draw-duration: 500ms;
  --gap: 100ms;
}

body {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== DESKTOP CONTAINER ===== */
#desktop-container {
  display: block;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  position: relative;
  height: 100vh;
  background-color: #2C3E50;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-links li {
  margin: 0 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 18px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-title {
  display: none;
}

/* Section navigation */
.section-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.section-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(139, 69, 19, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.section-dot.active {
  background-color: var(--accent);
  transform: scale(1.4);
}

/* Hero animation */
.hero-animation {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transform: translateY(-10%);
}

.hero-animation .wrap {
  width: min(90vw, 1000px);
  aspect-ratio: 8 / 2;
}

.hero-animation svg {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.hero-animation text tspan {
  fill: transparent;
  stroke: #fff;
  stroke-width: var(--stroke-width);
  stroke-linecap: round;
  stroke-linejoin: round;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 1;
}

@keyframes draw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.hero-animation .filled {
  fill: #fff !important;
  stroke: none !important;
  stroke-dasharray: none !important;
  stroke-dashoffset: 0 !important;
}

.hero-animation .spacer {
  fill: transparent !important;
  stroke: none !important;
  opacity: 0 !important;
}

.hero-image {
  opacity: 0;
  transform: scale(0.7) translateY(-15%);
  transition: opacity 4s ease-in-out, transform 2s ease-in-out;
  transform: translateY(-30%);
  padding-top: 50px;
}

.hero-image img {
  max-width: 90%;
  height: auto;
  max-height: 60vh;
}

.hero-image.show {
  opacity: 1;
  transform: scale(1) translateY(-15%);
}

.desktop-scroll-button {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  border: none;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.desktop-scroll-button:hover {
  background: var(--primary-dark);
  transform: translateX(-50%) scale(1.1);
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: 80px;
}

section {
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.text-block, .image-block {
  flex: 1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

/* Journey steps */
.journey-steps {
  margin-top: 30px;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.step-icon {
  font-size: 2rem;
  margin-right: 20px;
  min-width: 60px;
  text-align: center;
}

.step-title {
  flex: 1;
}

.step-title h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

/* Form styles */
form {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  max-width: 500px;
}

form input, form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

form textarea {
  resize: vertical;
  min-height: 150px;
}

form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

form button:hover {
  background: var(--primary-dark);
}

.form-message {
  padding: 10px;
  margin: 15px 0;
  border-radius: 5px;
  font-weight: 500;
}

.form-message.success {
  color: green;
  background-color: rgba(0, 128, 0, 0.1);
  border: 1px solid green;
}

.form-message.error {
  color: red;
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid red;
}

.image-block img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Alternate layout for sections */
section:nth-child(even) .section-content {
  flex-direction: row-reverse;
}

/* Aftercare section */
.aftercare-container {
  display: flex;
  gap: 40px;
}

.aftercare-left, .aftercare-right {
  flex: 1;
}

.review-box {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.review {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.review:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-weight: bold;
}

.reviewer {
  font-weight: bold;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

/* ===== MOBILE CONTAINER ===== */
#mobile-container {
  display: none;
}

.mobile-section {
  height: 100vh;
  width: 100%;
  padding: 20px;
  scroll-snap-align: start;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile header */
#mobile-header {
  background-color: #2C3E50;
  color: #8B4513;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0;
}

.mobile-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
}

.mobile-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.mobile-hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav-dots {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  display: none;
}

.mobile-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-dot.active {
  background-color: var(--accent);
  transform: scale(1.3);
}

.mobile-scroll-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  display: none;
}

.mobile-scroll-button:hover {
  background: var(--primary-dark);
  transform: translateX(-50%) translateY(-2px);
}

/* Mobile content adjustments */
#mobile-container .container {
  padding: 10px;
  max-height: 90vh;
  overflow-y: auto;
}

#mobile-container .section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

#mobile-container .journey-steps {
  margin-top: 15px;
}

#mobile-container .step {
  margin-bottom: 20px;
  align-items: center;
}

#mobile-container .step-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  min-width: 40px;
}

#mobile-container .step-title h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

#mobile-container .step-title p {
  font-size: 0.9rem;
}

#mobile-container form {
  padding: 20px;
  max-width: 100%;
}

#mobile-container .form-group {
  margin-bottom: 15px;
}

#mobile-container input, 
#mobile-container textarea {
  padding: 12px;
  font-size: 16px; /* Prevents zoom on iOS */
}

#mobile-container textarea {
  min-height: 120px;
}

#mobile-container .review-box {
  padding: 20px;
}

#mobile-container .review {
  margin-bottom: 15px;
  padding-bottom: 15px;
}

#mobile-container .social-icons {
  margin-top: 20px;
}

#mobile-container .social-icons a {
  width: 35px;
  height: 35px;
  font-size: 16px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .section-content {
    flex-direction: column !important;
  }
  
  .text-block, .image-block {
    width: 100%;
  }
  
  .section-nav {
    right: 15px;
  }
  
  .aftercare-container {
    flex-direction: column;
  }
}

/* Hamburger Menu */
.hamburger {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-dark);
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  display: none;
}

.hamburger:hover {
  background-color: rgba(74, 134, 232, 0.1);
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Hide desktop content and show mobile container */
  #desktop-container {
    display: none;
  }
  
  #mobile-container {
    display: block;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
  }
  
  .mobile-nav-dots,
  .mobile-scroll-button {
    display: flex;
  }
  
  body {
    padding-top: 70px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  
  .nav-links.active {
    max-height: 500px;
  }
  
  .nav-links li {
    margin: 0;
    text-align: center;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 15px 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .navbar {
    padding: 10px 0;
  }

  .nav-title {
    display: block;
  }   

  .image-block {
    display: none;
  }
  
  /* Mobile section styles */
  #mobile-customer-enquiry {
    background: var(--light-bg);
  }
  
  #mobile-form {
    background: white;
  }
  
  #mobile-design-process {
    background: var(--light-bg);
  }
  
  #mobile-installation {
    background: white;
  }
  
  #mobile-aftercare {
    background: var(--light-bg);
  }
  
  #mobile-reviews-social {
    background: white;
    padding-bottom: 70px;
  }
}

@media (max-width: 576px) {
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  /* Further mobile optimizations */
  #mobile-container .section-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }
  
  #mobile-container .step {
    flex-direction: row;
    text-align: left;
    margin-bottom: 15px;
  }
  
  #mobile-container .step-icon {
    margin-right: 15px;
    margin-bottom: 0;
  }
  
  #mobile-container .journey-steps {
    margin-top: 10px;
  }
  
  #mobile-container .container {
    padding: 5px;
  }
}

.construction-notice {
  background: #fff4e6;
  border: 1px dashed #e67700;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.construction-icon {
  font-size: 24px;
  margin-right: 10px;
  color: #e67700;
}

.construction-text {
  font-style: italic;
  color: #e67700;
  font-size: 16px;
  font-weight: 500;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}