/* ===== MASTERPIECE WALLCOVERINGS - STYLE.CSS ===== */
/* Coastal Mediterranean Luxury | Sunlit Architectural Elegance */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary-bg: #1F4A52;
  --secondary-bg: #2F5F68;
  --light-bg: #F6F1E7;
  --text-light: #FFFFFF;
  --text-dark: #2B3436;
  --accent: #C87C5B;
  --accent-hover: #B06A4D;
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--light-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.site-header {
  background: var(--primary-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-contact a {
  color: var(--text-light);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-contact a:hover {
  color: var(--accent);
}

.header-contact svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

/* --- NAVIGATION --- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  color: var(--text-light);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  display: block;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

/* --- DROPDOWN --- */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary-bg);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 240px;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 999;
  padding: 8px 0;
  border-top: 2px solid var(--accent);
}

.nav-list > li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.nav-list > li:hover .dropdown li {
  opacity: 1;
  transform: translateX(0);
}

.nav-list > li:hover .dropdown li:nth-child(1) { transition-delay: 0.05s; }
.nav-list > li:hover .dropdown li:nth-child(2) { transition-delay: 0.1s; }
.nav-list > li:hover .dropdown li:nth-child(3) { transition-delay: 0.15s; }
.nav-list > li:hover .dropdown li:nth-child(4) { transition-delay: 0.2s; }
.nav-list > li:hover .dropdown li:nth-child(5) { transition-delay: 0.25s; }
.nav-list > li:hover .dropdown li:nth-child(6) { transition-delay: 0.3s; }
.nav-list > li:hover .dropdown li:nth-child(7) { transition-delay: 0.35s; }
.nav-list > li:hover .dropdown li:nth-child(8) { transition-delay: 0.4s; }
.nav-list > li:hover .dropdown li:nth-child(9) { transition-delay: 0.45s; }
.nav-list > li:hover .dropdown li:nth-child(10) { transition-delay: 0.5s; }
.nav-list > li:hover .dropdown li:nth-child(11) { transition-delay: 0.55s; }

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
}

.dropdown a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
  padding-left: 26px;
}

/* --- MOBILE MENU --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--text-light);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,74,82,0.85) 0%, rgba(47,95,104,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

.hero-text {
  color: var(--text-light);
}

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

.hero-text p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(200,124,91,0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--text-light);
}

/* --- SECTIONS --- */
.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--primary-bg);
  color: var(--text-light);
}

.section-teal {
  background: var(--secondary-bg);
  color: var(--text-light);
}

.section-light {
  background: var(--light-bg);
}

.section-white {
  background: #FFFFFF;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: inherit;
}

.section-title p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* --- GRID LAYOUTS --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- CARDS --- */
.card {
  background: #FFFFFF;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 a {
  color: var(--text-dark);
}

.card-body h3 a:hover {
  color: var(--accent);
}

/* --- FORM STYLES --- */
.feedback-form-container {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.feedback-form-container h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e0ddd6;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fafaf8;
  transition: var(--transition);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,124,91,0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  margin-bottom: 16px;
}

.form-submit {
  text-align: center;
}

.submit-btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(200,124,91,0.3);
}

#form-success {
  text-align: center;
  padding: 20px;
}

#form-success p {
  color: var(--primary-bg);
  font-weight: 500;
  font-size: 1.1rem;
}

/* --- CTA SECTION --- */
.cta-block {
  background: var(--secondary-bg);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 40px 0;
  color: var(--text-light);
}

.cta-block h3 {
  margin-bottom: 0.5rem;
}

.cta-block p {
  opacity: 0.9;
  margin-bottom: 1.2rem;
}

/* --- MAP --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 20px 0;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* --- FOOTER --- */
.site-footer {
  background: var(--primary-bg);
  color: var(--text-light);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.footer-col p {
  opacity: 0.85;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- STICKY QUOTE BUTTON --- */
.sticky-quote-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  padding: 16px 28px;
  background: var(--accent);
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(200,124,91,0.4);
  transition: var(--transition);
}

.sticky-quote-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,124,91,0.5);
}

/* --- MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(0,0,0,0.08);
}

/* --- CONTENT PAGES --- */
.page-hero {
  background: var(--primary-bg);
  padding: 60px 0;
  text-align: center;
  color: var(--text-light);
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
}

.content-section {
  padding: 60px 0;
}

.content-section h2 {
  color: var(--primary-bg);
  margin-bottom: 1rem;
}

.content-section h3 {
  color: var(--secondary-bg);
}

.content-section ul,
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-section ul li,
.content-section ol li {
  margin-bottom: 0.5rem;
  list-style: disc;
  line-height: 1.7;
}

.content-section ol li {
  list-style: decimal;
}

.content-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 20px 0;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* --- FAQ --- */
.faq-item {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  color: var(--primary-bg);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  color: var(--text-dark);
  font-size: 0.95rem;
}

/* --- SERVICE AREAS GRID --- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.area-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.area-card:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.area-card h3 {
  color: var(--primary-bg);
  margin-bottom: 0.5rem;
}

.area-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* --- NEIGHBORHOODS LIST --- */
.neighborhoods-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 0;
}

.neighborhoods-list li {
  list-style: none !important;
  padding: 8px 14px;
  background: rgba(31,74,82,0.05);
  border-radius: 6px;
  font-size: 0.9rem;
}

/* --- INTERNAL LINKS --- */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.internal-links a {
  padding: 8px 16px;
  background: var(--primary-bg);
  color: var(--text-light);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
}

.internal-links a:hover {
  background: var(--accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  h1 { font-size: 2.2rem; }
  .hero-text h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .header-top { display: none; }

  .mobile-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    max-width: 50vw;
    height: 100vh;
    background: var(--primary-bg);
    flex-direction: column;
    padding: 70px 24px 40px;
    transition: right 0.35s ease;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .main-nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
    align-items: stretch;
  }

  .nav-list > li > a {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    display: block;
    width: 100%;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding: 0 0 0 16px;
    display: none;
    background: transparent;
    min-width: auto;
  }

  .dropdown.show {
    display: block;
  }

  .dropdown li {
    opacity: 1;
    transform: none;
  }

  .dropdown a {
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .dropdown a:hover {
    padding-left: 8px;
  }

  .mobile-nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-light);
    font-size: 2.2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1060;
    line-height: 1;
  }

  .mobile-nav-close:hover {
    background: rgba(255,255,255,0.2);
    color: var(--accent);
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
  }

  .mobile-overlay.active {
    display: block;
  }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .hero { min-height: 70vh; }
  .hero-text h1 { font-size: 2rem; }

  .sticky-quote-btn {
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 40px);
    max-width: 320px;
    text-align: center;
  }

  .sticky-quote-btn:hover {
    transform: translateX(50%) translateY(-2px);
  }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.7rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 50px 0; }
  .content-section { padding: 40px 0; }
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.error-message {
  animation: fadeIn 0.3s ease;
}
