@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Variables for Clear and Connected Brand Colors - Warm & Inviting Theme */
:root {
    /* Primary Colors - Warm & Inviting */
    --primary-terracotta: #D97D55;
    --primary-forest: #5D866C;
    --accent-rose: #D6A99D;
    
    /* Background Colors - Soft & Comforting */
    --bg-cream: #F4E9D7;
    --bg-light: #FBF3D5;
    --bg-off-white: #F5F5F0;
    --bg-beige: #E6D8C3;
    
    /* Neutral Colors */
    --neutral-sage: #B8C4A9;
    --neutral-muted: #C2A68C;
    --neutral-teal: #6FA4AF;
    --neutral-soft: #D6DAC8;
    --neutral-muted-teal: #9CAFAA;
    
    /* Text Colors */
    --text-dark: #3D4A3F;
    --text-medium: #5D866C;
    --text-light: #6FA4AF;
    --text-muted: #C2A68C;
    
    /* Utility Colors */
    --white: #FFFFFF;
    --black: #000000;
    --shadow: rgba(61, 74, 63, 0.1);
    --shadow-hover: rgba(61, 74, 63, 0.15);
    --shadow-warm: rgba(217, 125, 85, 0.2);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--primary-forest), var(--neutral-teal));
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  background-size: 300px 300px, 400px 400px, 200px 200px;
  background-position: 0 0, 100px 100px, 50px 50px;
  pointer-events: none;
  z-index: -1;
}

.page-wrapper {
  background-color: var(--bg-cream);
  border-radius: 6px;
  margin: 1rem;
  min-height: calc(100vh - 2rem);
  box-shadow: 0 8px 32px var(--shadow);
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 2rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

a {
  color: var(--primary-terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-forest);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-terracotta), var(--accent-rose));
  color: var(--white);
  border: 2px solid var(--primary-terracotta);
  box-shadow: 0 4px 15px var(--shadow-warm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-forest), var(--primary-terracotta));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-warm);
  border-color: var(--primary-forest);
  color: var(--white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-forest);
  border: 2px solid var(--primary-forest);
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-secondary:hover {
  background: var(--primary-forest);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(93, 134, 108, 0.3);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Header */
.header {
  background: #f4e9d7db;
  box-shadow: 0 4px 20px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1000;
  overflow: visible;
  width: calc(100% - 2rem);
  border-radius: 6px;
  border-bottom: 2px solid rgba(176, 159, 201, 0.3);
  transition: all 0.3s ease;
  min-height: auto;
}

.header .container {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0;
}

.header:hover {
  box-shadow: 0 6px 25px var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.header-top {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.25rem 2rem;
  position: relative;
  min-height: 60px;
}

.header-bottom {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.15rem 2rem 0.25rem 2rem;
  position: relative;
  min-height: 50px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
  flex-shrink: 0;
  margin-right: 2rem;
  position: relative;
}

/* Logo Container - Spans both header sections */
.logo-container {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  z-index: 1001;
}

/* Header logo specific styles */
.header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header .logo img {
  width: 150px;
  height: 150px;
  max-width: 180px;
  max-height: 180px;
  min-width: 120px;
  min-height: 120px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(176, 159, 201, 0.2);
  object-fit: cover;
  display: block;
}

/* Footer logo - reset styles */
.footer .logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 0;
  margin-top: 0;
  box-shadow: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-width: 450px;
}


.nav-link {
  position: relative;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  background: #5c8282;
  border: 2px solid rgba(61, 74, 63, 0.3);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-warm);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.nav-link::after {
  display: none;
}

.nav-link:hover {
  background: rgba(61, 74, 63, 0.5);
  border-color: rgba(61, 74, 63, 0.5);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow-warm);
}

.nav-link.active {
  background: rgba(61, 74, 63, 0.6);
  border-color: rgba(61, 74, 63, 0.6);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(61, 74, 63, 0.4);
}

.nav-link.active:hover {
  background: rgba(61, 74, 63, 0.7);
  border-color: rgba(61, 74, 63, 0.7);
  transform: translateY(-1px);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.rotating-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.rotating-cta:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary-forest);
}

.rotating-cta .cta-icon,
.rotating-cta .cta-text {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Header-specific button styles */
.header .btn-primary {
  background: linear-gradient(135deg, #b09fc9, #c4b5d9);
  border: 2px solid #b09fc9;
  box-shadow: 0 4px 15px rgba(176, 159, 201, 0.3);
}

.header .btn-primary:hover {
  background: linear-gradient(135deg, #9a8ab8, #b09fc9);
  border-color: #9a8ab8;
  box-shadow: 0 6px 20px rgba(176, 159, 201, 0.4);
  transform: translateY(-2px);
  color: var(--white);
}

.rotating-cta .cta-text {
  white-space: nowrap;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: var(--primary-forest);
  border-top: 1px solid var(--primary-forest);
  padding: 1rem 0;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav .nav-link {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--primary-forest);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(rgba(93, 134, 108, 0.75), rgba(111, 164, 175, 0.75)),
              url('/images/Open Bay Adjusting Area_1752591840.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  margin: 1rem;
  margin-top: 6rem;
  border-radius: 6px;
  box-shadow: 0 4px 20px var(--shadow);
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-content p {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 4rem 0;
  margin: 1rem;
  margin-top: 6rem;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px var(--shadow);
}

.section-alt {
  background-color: rgba(184, 196, 169, 0.4);
  margin: 1rem;
  margin-top: 6rem;
  padding: 4rem 0;
  border-radius: 6px;
  box-shadow: 0 4px 20px var(--shadow);
}

.section-hero {
  background-color: var(--bg-light);
  margin: 1rem;
  margin-top: 6rem;
  padding: 4rem 0;
  border-radius: 6px;
  box-shadow: 0 4px 20px var(--shadow);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--bg-beige);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-hover);
  border-color: var(--accent-rose);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* Service Cards */
.service-card {
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-terracotta);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-terracotta), var(--accent-rose));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
  font-size: 2rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
}

.service-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.service-features li::before {
  content: '•';
  color: var(--primary-terracotta);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary-forest), var(--neutral-teal));
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-card {
  border-radius: 6px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-card:nth-child(1) {
  background: rgba(217, 125, 85, 0.3);
}

.footer-card:nth-child(2) {
  background: var(--bg-beige);
}

.footer-card:nth-child(3) {
  background: rgba(184, 196, 169, 0.3);
}

.footer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-card-header h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-card:nth-child(2) .footer-card-header h4 {
  color: var(--text-dark);
}

.footer-card-content p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-card:nth-child(2) .footer-card-content p {
  color: var(--text-dark);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-card:nth-child(2) .contact-item {
  color: var(--text-dark);
}

.contact-icon {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-card:nth-child(2) .contact-item a {
  color: var(--text-dark);
}

.contact-item a:hover {
  color: var(--white);
}

.footer-card:nth-child(2) .contact-item a:hover {
  color: var(--primary-terracotta);
}

.hours-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.day-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.day-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.day-name {
  display: block;
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.footer-card:nth-child(2) .day-name {
  color: var(--text-dark);
}

.day-hours {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  line-height: 1.3;
}

.footer-card:nth-child(2) .day-hours {
  color: var(--text-dark);
}

.day-hours.closed {
  color: var(--accent-rose);
}

.day-hours.appointment {
  color: var(--neutral-teal);
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.footer-card:nth-child(3) .quick-link {
  color: var(--text-dark);
  border-bottom: 1px solid rgba(61, 74, 63, 0.2);
}

.quick-link:hover {
  color: var(--white);
  padding-left: 0.5rem;
  border-bottom-color: rgba(255, 255, 255, 0.95);
}

.footer-card:nth-child(3) .quick-link:hover {
  color: var(--primary-terracotta);
  border-bottom-color: var(--primary-terracotta);
}

.footer-bottom {
  border-top: 1px solid rgba(217, 125, 85, 0.2);
  padding-top: 1rem;
  text-align: center;
  color: var(--white);
  background-color: rgba(61, 74, 63, 0.6);
  border-radius: 6px;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.5);
  padding: 2rem;
  border-radius: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--bg-beige);
  border-radius: 0.5rem;
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.3s ease;
  background-color: var(--bg-off-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-terracotta);
  background-color: var(--white);
}

/* Office Hours */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg-beige);
}

.hours-item:last-child {
  border-bottom: none;
}

/* Team Cards */
.team-card {
  text-align: center;
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
}

.team-title {
  color: var(--primary-forest);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .logo-container {
    grid-column: 1;
    grid-row: 1;
    padding: 0.5rem 1rem;
  }

  .header-top {
    grid-column: 1;
    grid-row: 2;
    justify-content: space-between;
    padding: 0.25rem 1rem;
  }

  .header-bottom {
    grid-column: 1;
    grid-row: 3;
    display: none;
  }

  .header .logo img {
    width: 90px;
    height: 90px;
    max-width: 90px;
    max-height: 90px;
  }

  .header-content {
    justify-content: space-between;
    padding: 0.75rem 0;
  }

  .logo {
    gap: 0.5rem;
  }

  .footer .logo img {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    margin-top: 0;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav {
    display: none;
    position: static;
    transform: none;
    margin: 0;
    min-width: auto;
  }
  
  .hero {
    margin: 1rem;
    margin-top: 10rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-cta {
    display: none;
  }

  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
  
  .card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Team Page Specific Styles */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cta-container {
  background: linear-gradient(135deg, var(--primary-forest), var(--neutral-teal));
  border-radius: 2rem;
  padding: 3rem;
  color: white;
  text-align: center;
}

.cta-container h2,
.cta-container p {
  color: white;
}

/* Desktop spacing for header clearance */
@media (min-width: 769px) {
  .section,
  .section-alt,
  .section-hero,
  .hero {
    margin-top: 12rem;
  }
}

/* Mobile Responsive for Team Page */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .cta-container {
    padding: 2rem 1.5rem;
    border-radius: 1rem;
  }
  
  .cta-container h2 {
    font-size: 1.5rem;
  }
  
  .cta-container p {
    font-size: 1rem;
  }
  
  /* Mobile header clearance - override desktop spacing */
  .section,
  .section-alt,
  .section-hero,
  .hero {
    margin-top: 6rem !important;
  }
}
