/* =====================================================
   C&H Builders - Main Stylesheet
   Inspired by Blackwolf Build design
   ===================================================== */

/* CSS Variables / Custom Properties */
:root {
    --primary-color: #CFAE70;
    --primary-dark: #B89B5D;
    --text-dark: #1c1c1c;
    --text-light: #ffffff;
    --text-gray: #666666;
    --bg-dark: #323437;
    --bg-light: #ffffff;
    --bg-section: #f8f8f8;
    --top-bar-bg: #363537;
    --transition: all 0.3s ease;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(207, 174, 112, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-dark);
    box-shadow: 0 6px 20px rgba(207, 174, 112, 0.5);
    transform: translateY(-2px);
}

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
    background-color: var(--top-bar-bg);
    padding: 8px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

.top-bar .social-links a {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 20px;
    opacity: 0.8;
    transition: var(--transition);
}

.top-bar .social-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: clamp(14px, 4vw, 22px);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 0;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* =====================================================
   DROPDOWN MENUS
   ===================================================== */
.has-dropdown {
    position: relative;
}

.has-dropdown > .dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 7px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 5px 5px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
    border-top: 2px solid var(--primary-color);
}

/* Right-align dropdown for last nav items to prevent overflow */
.has-dropdown:last-of-type .dropdown-menu {
    left: auto;
    right: 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: var(--transition);
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
    color: var(--primary-color);
    background-color: rgba(207, 174, 112, 0.08);
    padding-left: 30px;
}

/* Wide dropdown for Service Areas (2 columns) */
.dropdown-menu-wide {
    min-width: 340px;
    display: flex;
    flex-wrap: wrap;
    padding: 15px 0;
}

.dropdown-menu-wide li {
    width: 50%;
}

.dropdown-menu-wide li a {
    padding: 8px 20px;
    font-size: 11px;
}

.dropdown-menu-wide li a:hover,
.dropdown-menu-wide li a.active {
    padding-left: 25px;
}

/* Hamburger Active State */
.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* =====================================================
   SECTIONS GENERAL
   ===================================================== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   WHY BUILD SECTION - CARDS
   ===================================================== */
.why-build {
    background-color: var(--bg-section);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--bg-light);
    padding: 50px 40px;
    text-align: center;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(207, 174, 112, 0.1);
    color: var(--primary-color);
    font-size: 32px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-gray);
    line-height: 1.7;
}

/* =====================================================
   MISSION SECTION
   ===================================================== */
.mission {
    background-color: var(--bg-dark);
    text-align: center;
}

/* =====================================================
   PEOPLE SECTION
   ===================================================== */
.people {
    background-color: var(--bg-dark);
    overflow: hidden;
}

.people-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.founder-image {
    display: flex;
    justify-content: center;
}

.headshot-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 0 8px rgba(207, 174, 112, 0.1);
    transition: var(--transition);
}

.headshot-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 50%, var(--primary-color) 100%);
    z-index: -1;
    opacity: 0.5;
}

.headshot-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4),
                0 0 0 12px rgba(207, 174, 112, 0.15);
}

.headshot-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

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

.founder-info .section-label {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.founder-name {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
    line-height: 1.2;
}

.founder-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.founder-bio {
    margin-bottom: 30px;
}

.founder-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

.founder-bio p:last-child {
    margin-bottom: 0;
}

.founder-info .btn {
    margin-top: 10px;
}

/* Legacy mission styles (can be removed if not used) */
.mission-content {
    max-width: 900px;
    margin: 0 auto;
}

.mission .section-label {
    color: var(--primary-color);
}

.mission-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.6;
}

/* =====================================================
   VALUES SECTION
   ===================================================== */
.values {
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.value-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
}

/* =====================================================
   PROCESS SECTION
   ===================================================== */
.process {
    background-color: var(--bg-section);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    min-width: 60px;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-gray);
    margin-bottom: 0;
}

/* =====================================================
   PORTFOLIO SECTION
   ===================================================== */
.portfolio {
    background-color: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.portfolio-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: var(--text-light);
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Portfolio image styling */
.portfolio-image {
    background-color: #ddd;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */
.testimonials {
    background-color: var(--bg-section);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-initials {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact {
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-item a,
.info-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Service Area Town Pills */
.service-towns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.service-towns a {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.service-towns a:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background-color: transparent;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 1rem;
    color: var(--text-gray);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    align-self: flex-start;
}

/* Form Success/Error Messages */
.form-message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* =====================================================
   FOOTER - Slim Modern Design
   ===================================================== */
.footer {
    background-color: var(--bg-dark);
    padding: 25px 0 20px;
    color: var(--text-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand .brand-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-light);
}

.footer-brand .brand-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
    display: flex;
    gap: 25px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
}

/* Footer Service Areas */
.footer-service-areas {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-service-areas h4 {
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-towns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
}

.footer-towns a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: none;
    transition: var(--transition);
}

.footer-towns a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-bottom: 0;
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-hover);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade {
    animation: fadeIn 0.6s ease forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

/* Tablet */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .video-container video {
        display: none;
    }

    .video-container {
        background: url('../mobile_background.jpg') center/cover no-repeat;
    }

    .logo-text {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    /* People Section Mobile */
    .people-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .founder-image {
        order: -1;
    }

    .headshot-wrapper {
        width: 220px;
        height: 220px;
    }

    .founder-info .section-label {
        justify-content: center;
    }

    .founder-info .btn {
        margin: 10px auto 0;
    }

    .top-bar {
        padding: 5px 0;
    }

    .top-bar .social-links a {
        margin-left: 15px;
        font-size: 12px;
    }

    .navbar {
        top: 32px;
    }

    .navbar.scrolled {
        top: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        transition: var(--transition);
        z-index: 1001;
        overflow-y: auto;
        padding: 80px 20px 40px;
    }

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

    .nav-link {
        font-size: 18px;
    }

    /* Mobile dropdown styles */
    .dropdown-arrow {
        font-size: 10px;
        margin-left: 6px;
    }

    .has-dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    .has-dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 8px 0 8px 20px;
        margin: 5px auto;
        border-left: 2px solid var(--primary-color);
        max-width: 250px;
    }

    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu li a {
        font-size: 13px;
        padding: 7px 0;
        text-align: left;
        color: var(--text-gray);
    }

    .dropdown-menu li a:hover,
    .dropdown-menu li a.active {
        padding-left: 0;
        color: var(--primary-color);
        background-color: transparent;
    }

    .dropdown-menu-wide {
        min-width: 0;
        flex-direction: column;
    }

    .dropdown-menu-wide li {
        width: 100%;
    }

    .dropdown-menu-wide li a {
        padding: 7px 0;
        font-size: 13px;
    }

    .dropdown-menu-wide li a:hover,
    .dropdown-menu-wide li a.active {
        padding-left: 0;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 0 15px;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .step-number {
        min-width: auto;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .btn {
        width: 100%;
        text-align: center;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo-text {
        font-size: 11px;
        letter-spacing: 0;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .card {
        padding: 35px 25px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 30px 25px;
    }

    .process-step {
        padding: 20px;
    }

    .footer-nav {
        gap: 12px;
    }

    .footer-nav a {
        font-size: 10px;
    }

    .footer-brand .brand-name {
        font-size: 0.8rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }
}

/* =====================================================
   iOS SPECIFIC FIXES
   ===================================================== */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .video-container video {
        object-fit: cover;
        -webkit-object-fit: cover;
    }
}

/* Fix for iOS video autoplay */
.hero video {
    -webkit-playsinline: true;
    playsinline: true;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* =====================================================
   LOADING STATE
   ===================================================== */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   MOBILE CALL/TEXT CTA BUTTON
   ===================================================== */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 998;
}

.mobile-cta-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(207, 174, 112, 0.4);
    transition: var(--transition);
    font-size: 20px;
}

.mobile-cta-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(207, 174, 112, 0.5);
}

.mobile-cta-options {
    position: absolute;
    bottom: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.mobile-cta.active .mobile-cta-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-cta.active .mobile-cta-toggle {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.mobile-cta.active .mobile-cta-toggle i::before {
    content: "\f00d";
}

.cta-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.cta-option:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

.cta-option i {
    font-size: 16px;
}

.cta-call {
    background: var(--primary-color);
    color: var(--text-dark);
}

.cta-call:hover {
    background: var(--primary-dark);
}

.cta-text {
    background: var(--bg-dark);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-text:hover {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* Only show on mobile */
@media (max-width: 768px) {
    .mobile-cta {
        display: block;
    }
}
