/* CSS - RMS Consultoria e Agrimensura (Template Faithful Version) */

/* ----------------------------------------------------
   1. VARIABLES & COLOR SYSTEM (Warm Gold & Charcoal)
---------------------------------------------------- */
:root {
    --primary-color: #f7a700; /* Warm solid golden-orange from template */
    --primary-hover: #d99200;
    --bg-dark: #1a1a1a;       /* Charcoal gray background */
    --bg-dark-light: #222222; /* Lighter charcoal for cards/accents */
    --bg-light: #ffffff;      /* Pure white */
    --bg-light-alt: #fcfbf9;  /* Beige/cream background for services cards */
    --bg-cream-card: #f9f8f4; /* Light beige for specific card designs */
    
    --text-light: #ffffff;
    --text-dark: #222222;
    --text-muted-light: #a3a3a3;
    --text-muted-dark: #555555;
    
    --border-dark: #2d2d2d;
    --border-light: #e5e5e5;
    
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-max-width: 1200px;
    --transition-speed: 0.25s;
    --transition-style: all 0.25s ease;
}

/* ----------------------------------------------------
   2. RESET & BASE STYLES (Strict Flat Rectangular)
---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0px !important; /* Force sharp rectangular corners globally */
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
    background: none;
}

/* ----------------------------------------------------
   3. REUSABLE COMPONENTS
---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    font-weight: 700;
    transition: var(--transition-style);
    font-family: var(--font-headings);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #111111;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.4rem;
    font-size: 0.88rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    color: inherit;
    margin-top: 0.5rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ----------------------------------------------------
   4. NAVBAR
---------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    padding: 1.5rem 0;
    transition: var(--transition-style);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: var(--bg-dark);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-dark);
}

.nav-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition-style);
}

.navbar.scrolled .logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-item {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.nav-item:hover, .nav-item.active {
    opacity: 1;
    color: var(--primary-color);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-nav {
    padding: 0.75rem 1.4rem;
    font-size: 0.78rem;
}

.menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-speed);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ----------------------------------------------------
   5. HERO & SUB-HERO TABS
---------------------------------------------------- */
.hero-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 11rem 0 0 0; /* padding for sub-hero alignment */
    position: relative;
}

.hero-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    padding-bottom: 6rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-tagline {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    display: flex;
    justify-content: flex-end;
}

.hero-image-card {
    border: 5px solid var(--border-dark);
    max-width: 440px;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

/* Sub-hero Tabs (Matches Template Style) */
.sub-hero-tabs {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    transform: translateY(1px); /* Avoid background layout gaps */
    z-index: 10;
    position: relative;
}

.sub-hero-tab {
    background-color: var(--bg-dark-light);
    border-right: 1px solid var(--border-dark);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-style);
}

.sub-hero-tab:last-child {
    border-right: none;
}

.sub-hero-tab.active {
    background-color: var(--primary-color);
    color: #111111;
}

.tab-content {
    display: flex;
    flex-direction: column;
}

.tab-title {
    font-family: var(--font-headings);
    font-size: 1.15rem;
    font-weight: 700;
}

.tab-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* ----------------------------------------------------
   6. SERVIÇOS SECTION (Provide Quality Services Beige Grid)
---------------------------------------------------- */
.services-section {
    padding: 8rem 0;
    background-color: var(--bg-light-alt);
    border-bottom: 1px solid var(--border-light);
}

.services-header {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto 4rem auto;
    text-align: center;
}

.services-grid {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-cream-card);
    border: 1px solid rgba(229, 231, 235, 0.7);
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-style);
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-light);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.service-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted-dark);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
    transition: var(--transition-style);
}

.service-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.service-card:hover .service-link {
    color: var(--primary-color);
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* ----------------------------------------------------
   7. ABOUT SECTION (Shaping the Future Dark Block)
---------------------------------------------------- */
.about-section {
    padding: 8rem 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.about-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-content .section-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-text-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 0.95rem;
    color: var(--text-muted-light);
    margin-bottom: 1.5rem;
}

/* Counters Row */
.stats-grid {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-headings);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.about-btn {
    margin-top: 1rem;
}

.about-image-wrapper {
    display: flex;
    justify-content: flex-end;
}

.about-image-card {
    border: 5px solid var(--border-dark);
    width: 100%;
}

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

/* ----------------------------------------------------
   8. COMPLETED PROJECTS SECTION (View Completed Projects)
---------------------------------------------------- */
.portfolio-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
}

.portfolio-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.portfolio-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-light);
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-style);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #111111;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-image-box {
    position: relative;
    height: 380px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.9);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
    transition: var(--transition-style);
}

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

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-cat {
    font-family: var(--font-headings);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.portfolio-item-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.portfolio-loc {
    font-size: 0.85rem;
    color: var(--text-muted-light);
}

.btn-lightbox {
    background-color: var(--primary-color);
    color: #111111;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-style);
}

.btn-lightbox:hover {
    background-color: var(--primary-hover);
}

/* ----------------------------------------------------
   9. FAQ SECTION (Answers to queries)
---------------------------------------------------- */
.faq-section {
    padding: 8rem 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.faq-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: center;
}

.faq-image-wrapper {
    border: 5px solid var(--border-dark);
}

.faq-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.faq-accordion-side .section-title {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-dark-light);
    border: 1px solid var(--border-dark);
    transition: var(--transition-style);
}

.faq-question {
    width: 100%;
    padding: 1.4rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition-style);
}

.faq-icon {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

/* Inactive Question hover */
.faq-question:hover {
    color: var(--primary-color);
}

/* Active FAQ Item (faithful to template) */
.faq-item.active {
    border-color: var(--primary-color);
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: #111111;
}

.faq-item.active .faq-icon {
    color: #111111;
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 1.5rem 1.75rem;
    font-size: 0.9rem;
    color: var(--text-muted-light);
    border-top: 1px solid var(--border-dark);
}

.faq-item.active .faq-answer p {
    color: var(--text-light);
}

/* ----------------------------------------------------
   10. TESTIMONIALS SECTION
---------------------------------------------------- */
.testimonials-section {
    padding: 8rem 0;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.testimonials-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light-alt);
    border: 1px solid var(--border-light);
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-style);
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

.stars {
    display: flex;
    gap: 0.25rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text-muted-dark);
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
    line-height: 1.7;
}

.client-info {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.client-desc {
    font-size: 0.8rem;
    color: var(--text-muted-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.15rem;
}

/* ----------------------------------------------------
   11. CONTATO SECTION
---------------------------------------------------- */
.contact-section {
    padding: 8rem 0;
    background-color: var(--bg-light-alt);
}

.contact-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: start;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-lead {
    font-size: 1.05rem;
    color: var(--text-muted-dark);
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.method-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.method-icon {
    width: 52px;
    height: 52px;
    background-color: var(--bg-light-alt);
    border: 1px solid var(--border-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.method-details {
    display: flex;
    flex-direction: column;
}

.method-details span {
    font-family: var(--font-headings);
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted-dark);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.method-link {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.method-link:hover {
    color: var(--primary-color);
}

.method-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
}

.contact-form-block {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 3rem;
}

.form-block-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-block-desc {
    font-size: 0.88rem;
    color: var(--text-muted-dark);
    margin-bottom: 2.25rem;
}

.quote-calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-headings);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border-light);
    background-color: #fafafa;
    font-size: 0.9rem;
    transition: var(--transition-style);
    width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-light);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.9rem;
    padding-right: 2.5rem;
}

/* ----------------------------------------------------
   12. LIGHTBOX MODAL
---------------------------------------------------- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.98);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-speed);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--text-light);
    font-size: 2.25rem;
    transition: var(--transition-style);
    z-index: 2002;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border: 5px solid var(--border-dark);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-light);
}

.lightbox-title {
    font-family: var(--font-headings);
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.lightbox-details {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ----------------------------------------------------
   13. FLOATING ACTION COMPONENTS (Scroll top)
---------------------------------------------------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #111111;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-style);
    z-index: 990;
}

.scroll-top.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* ----------------------------------------------------
   14. FOOTER
---------------------------------------------------- */
.main-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 6.5rem 0 3.5rem 0;
    border-top: 1px solid var(--border-dark);
}

.footer-container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 52px;
    width: auto;
    margin-bottom: 1.75rem;
}

.footer-brand-desc {
    font-size: 0.88rem;
    color: var(--text-muted-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    background-color: var(--bg-dark-light);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-style);
}

.footer-socials a:hover {
    background-color: var(--primary-color);
    color: #111111;
    border-color: var(--primary-color);
}

.footer-col-title {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-contact-col {
    display: flex;
    flex-direction: column;
}

.footer-info-text {
    font-size: 0.88rem;
    color: var(--text-muted-light);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-info-text i {
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-bottom {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted-light);
}

/* ----------------------------------------------------
   15. MEDIA QUERIES (Responsiveness)
---------------------------------------------------- */

/* Laptop / Small Desktop (max 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        justify-content: center;
    }
    
    .sub-hero-tabs {
        grid-template-columns: 1fr;
        transform: none;
    }
    
    .sub-hero-tab {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }
    
    .sub-hero-tab:last-child {
        border-bottom: none;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-image-wrapper {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-header {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .faq-image-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .faq-img {
        height: 400px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Tablets (max 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-dark-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem;
        gap: 2rem;
        z-index: 999;
        transition: var(--transition-speed);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item::after {
        display: none;
    }
    
    .nav-item {
        font-size: 1.1rem;
    }
    
    .btn-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-image-box {
        height: 320px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-block {
        padding: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile Small (max 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-img {
        height: 360px;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-num {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .about-img {
        height: 360px;
    }
    
    .faq-img {
        height: 320px;
    }
}
