@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap');

:root {
 --primary-color: #5d4037; /* Rich leather brown */
 --primary-dark: #3e2723;
 --secondary-color: #c09f80; /* Gold accent */
 --text-dark: #2a1d12;
 --text-light: #6b5d50;
 --bg-light: #fdfaf6;
 --bg-white: #ffffff;
 --border-color: #e0e0e0;
 --font-main: 'Inter', sans-serif;
 --font-headings: 'Playfair Display', serif;
 --radius: 8px;
 --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
 --transition: all 0.3s ease-in-out;
}

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

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

body {
 font-family: var(--font-main);
 color: var(--text-dark);
 background-color: var(--bg-white);
 line-height: 1.7;
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

p { margin-bottom: 1rem; }
ul, ol { list-style-position: inside; }
img { max-width: 100%; height: auto; display: block; }

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

/* --- Header & Navigation --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.85);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid rgba(0,0,0,0.05);
 transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 70px;
}

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

.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
}
.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 position: relative;
 padding: 5px 0;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 z-index: 1001;
}
.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background-color: var(--text-dark);
 margin: 6px 0;
 transition: var(--transition);
}

/* --- Buttons --- */
.btn {
 display: inline-block;
 padding: 12px 28px;
 border-radius: var(--radius);
 font-weight: 600;
 text-align: center;
 transition: var(--transition);
 cursor: pointer;
 border: 2px solid transparent;
}
.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 transform: translateY(-2px);
}
.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--bg-white);
}

/* --- Hero Section --- */
.hero {
 position: relative;
 min-height: 60vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 padding: 120px 0 60px;
 background-image: url('https://images.pexels.com/photos/14154/pexels-photo-14154.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940');
 background-size: cover;
 background-position: center;
 color: var(--bg-white);
}

.hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background: rgba(42, 29, 18, 0.7);
}
.hero-content {
 position: relative;
 z-index: 1;
 max-width: 800px;
}
.hero-title {
 font-size: clamp(2.5rem, 6vw, 4.5rem);
 color: var(--bg-white);
 margin-bottom: 1rem;
}
.hero-subtitle {
 font-size: clamp(1rem, 2vw, 1.25rem);
 color: rgba(255, 255, 255, 0.9);
 margin-bottom: 2rem;
}
.hero-cta {
 display: flex;
 gap: 1rem;
 justify-content: center;
 flex-wrap: wrap;
}
.hero .btn-primary {
 background-color: var(--secondary-color);
 border-color: var(--secondary-color);
 color: var(--text-dark);
}
.hero .btn-primary:hover {
 background-color: #a5886d;
 border-color: #a5886d;
}
.hero .btn-secondary {
 color: var(--bg-white);
 border-color: var(--bg-white);
}
.hero .btn-secondary:hover {
 background-color: var(--bg-white);
 color: var(--text-dark);
}

/* --- General Section Styling --- */
.section {
 padding: clamp(40px, 8vw, 80px) 0;
}
.section.bg-light { background-color: var(--bg-light); }
.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 48px;
}
.section-label {
 display: inline-block;
 color: var(--primary-color);
 font-weight: 600;
 margin-bottom: 1rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle {
 font-size: 1.1rem;
 color: var(--text-light);
}

/* --- Cards & Grids --- */
.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 24px; }
@media(min-width: 768px){
 .grid-2 { grid-template-columns: repeat(2, 1fr); }
 .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card, .material-card, .case-study-card {
 background: var(--bg-white);
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 overflow: hidden;
 transition: var(--transition);
}
.feature-card:hover, .material-card:hover, .case-study-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.feature-card-img, .material-card-img {
 width: 100%;
 height: 220px;
 object-fit: cover;
}
.card-body { padding: 24px; }
.card-title { margin-bottom: 0.5rem; }
.card-text { color: var(--text-light); }
.card-link {
 font-weight: 600;
 display: inline-block;
 margin-top: 1rem;
}
.card-link:after {
 content: ' →';
 transition: var(--transition);
}
.card-link:hover:after {
 transform: translateX(4px);
}

/* --- Media Object --- */
.media-object {
 display: grid;
 gap: 48px;
 align-items: center;
}
@media(min-width: 992px) {
 .media-object { grid-template-columns: 1fr 1fr; }
 .media-object.reversed .media-visual { order: -1; }
}
.media-visual img {
 border-radius: var(--radius);
 box-shadow: var(--shadow);
 width: 100%;
 height: 400px;
 object-fit:cover;
}
.media-copy ul, .media-copy ol {
 padding-left: 20px;
 margin-top: 1rem;
}
.media-copy li { margin-bottom: 0.5rem; }

/* --- Testimonials --- */
.testimonial-card {
 text-align: center;
 background-color: var(--bg-light);
 padding: 32px;
 border-radius: var(--radius);
 display: flex;
 flex-direction: column;
 align-items: center;
}
.testimonial-avatar {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 1.5rem;
 box-shadow: 0 0 0 4px var(--bg-white), var(--shadow);
}
.testimonial-text {
 font-style: italic;
 color: var(--text-light);
 flex-grow: 1;
}
.testimonial-author strong {
 display: block;
 font-size: 1.1rem;
}
.testimonial-author span {
 font-size: 0.9rem;
 color: var(--primary-color);
}

/* --- CTA Section --- */
.cta-section {
 background-color: var(--primary-dark);
 color: var(--bg-white);
 text-align: center;
 padding: 60px 24px;
}
.cta-section .section-title { color: var(--bg-white); }
.cta-section p { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto 2rem; }
.cta-section .btn-primary {
 background-color: var(--secondary-color);
 border-color: var(--secondary-color);
 color: var(--text-dark);
}
.cta-section .btn-primary:hover {
 background-color: #a5886d;
 border-color: #a5886d;
}

/* --- Page-specific sections --- */
.page-header-section {
 padding-top: 120px;
 text-align: center;
 background-color: var(--bg-light);
}
.page-title { margin-bottom: 1rem; }
.page-subtitle {
 max-width: 700px;
 margin: 0 auto;
 font-size: 1.1rem;
 color: var(--text-light);
}
.process-list li { margin-bottom: 1rem; }
.thank-you-section { text-align: center; min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* --- Video Section --- */
.video-container {
 max-width: 900px;
 margin: 0 auto;
}
.video-wrapper {
 position: relative;
 border-radius: var(--radius);
 overflow: hidden;
 box-shadow: var(--shadow);
}
.video-wrapper video {
 width: 100%;
 display: block;
}
.video-play-btn1 {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 width: 80px;
 height: 80px;
 border-radius: 50%;
 background: rgba(255, 255, 255, 0.9);
 color: var(--primary-color);
 font-size: 2rem;
 border: none;
 cursor: pointer;
 transition: var(--transition);
 display: flex;
 align-items: center;
 justify-content: center;
 line-height: 1;
}
.video-play-btn1:hover {
 transform: translate(-50%, -50%) scale(1.1);
 background: var(--bg-white);
}
.video-wrapper.playing .video-play-btn1 {
 opacity: 0;
 pointer-events: none;
}

/* --- Timeline --- */
.timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 2px;
 background-color: var(--border-color);
 top: 0;
 bottom: 0;
 left: 15px;
}
.timeline-item {
 padding: 10px 40px 30px 60px;
 position: relative;
}
.timeline-dot {
 position: absolute;
 left: 0;
 top: 15px;
 width: 32px;
 height: 32px;
 border-radius: 50%;
 background-color: var(--bg-white);
 border: 4px solid var(--primary-color);
 z-index: 1;
}
.timeline-content h3 { margin-bottom: 0.5rem; }

/* --- Gallery --- */
.gallery-card {
 position: relative;
 border-radius: var(--radius);
 overflow: hidden;
 box-shadow: var(--shadow);
}
.gallery-card img {
 width: 100%;
 height: 300px;
 object-fit: cover;
 transition: transform 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.05); }

.gallery-card-info {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
 color: var(--bg-white);
 padding: 30px 20px 20px;
}
.gallery-card-info h3 { color: var(--bg-white); }
.gallery-card-info p { color: rgba(255,255,255,0.8); margin: 0; }

/* --- Contact Page --- */
.contact-layout { display: grid; gap: 48px; }
@media(min-width: 992px) { .contact-layout { grid-template-columns: 2fr 1fr; } }

.contact-heading { margin-bottom: 2rem; }

.contact-info-item { margin-bottom: 1.5rem; }
.contact-info-item strong { display: block; margin-bottom: 0.25rem; }
.contact-info-item p { margin: 0; color: var(--text-light); }
.contact-info-item a { color: var(--text-light); }
.contact-info-item a:hover { color: var(--primary-color); }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 500;
}
.form-group input, .form-group textarea {
 width: 100%;
 padding: 14px;
 border-radius: var(--radius);
 border: 1px solid var(--border-color);
 font-family: var(--font-main);
 font-size: 1rem;
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.2);
}
.checkbox-group {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}
.checkbox-group input { width: auto; }
.checkbox-group label { margin:0; font-weight: normal; font-size: 0.9rem;}

.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius);
 overflow: hidden;
 box-shadow: var(--shadow);
}
.map-container iframe {
 width: 100%;
 height: 100%;
 border: none;
}

/* --- Legal Pages --- */
.legal-page { padding-top: 80px; }
.legal-page .section { padding-top: 30px; }
.legal-page h2 { margin: 2rem 0 1rem; }
.legal-page ul { margin-bottom: 1rem; }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 2rem 0;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th { background-color: var(--bg-light); }

/* --- Footer --- */
.footer {
 background-color: var(--primary-dark);
 color: rgba(255,255,255,0.7);
 padding: 60px 0 30px;
 margin-top: auto;
}
.footer-grid {
 display: grid;
 gap: 30px;
 padding-bottom: 40px;
}
@media(min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr 1.5fr; } }

.footer-logo {
 font-family: var(--font-headings);
 color: var(--bg-white);
 font-size: 1.5rem;
 display: block;
 margin-bottom: 1rem;
}
.footer-desc {
 font-size: 0.9rem;
 line-height: 1.6;
}
.footer-heading {
 color: var(--bg-white);
 font-family: var(--font-main);
 font-size: 1rem;
 font-weight: 600;
 margin-bottom: 1rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--bg-white); }
.footer-contact-item { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--bg-white); }

.footer-bottom {
 padding-top: 30px;
 border-top: 1px solid rgba(255,255,255,0.1);
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.9rem;
 flex-wrap: wrap;
 gap: 1rem;
}
.footer-legal {
 list-style: none;
 padding: 0;
 display: flex;
 gap: 1.5rem;
}
.footer-legal a { color: rgba(255,255,255,0.7); }
.footer-legal a:hover { color: var(--bg-white); }

/* --- Form Validation & Spinner --- */
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
}
.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
button:disabled { opacity: 0.7; cursor: not-allowed; }

/* --- Cookie Banner --- */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--primary-dark);
 color: var(--bg-white);
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 flex-wrap: wrap;
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
#cookie-banner div { display: flex; gap: 10px; }

/* --- Responsive --- */
@media (max-width: 768px) {
 .nav-toggle { display: block; }
 .nav-links {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100vh;
 background: var(--bg-white);
 flex-direction: column;
 justify-content: center;
 align-items: center;
 gap: 2rem;
 transform: translateX(100%);
 transition: transform 0.4s ease-in-out;
 }
 .nav-links.active { transform: translateX(0); }
 .nav-links a { font-size: 1.5rem; }

 .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
 .nav-toggle.active span:nth-child(2) { opacity: 0; }
 .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
 
 .footer-bottom { flex-direction: column; text-align: center; }
}