/* =============================================================
   Antena Comporta Engenharia — Main Stylesheet
   Overrides template.css variables and adds site-specific styles
   ============================================================= */

/* ----------------------------------------------------------
   01. Brand Variables
---------------------------------------------------------- */
:root {
    --primary-color     : #2E2E2E;   /* near-black charcoal (logo) */
    --secondary-color   : #F5F4F0;   /* warm off-white */
    --bg-color          : #FFFFFF;
    --text-color        : #666666;
    --accent-color      : #00aa9d;   /* Concrefit teal */
    --accent-dark       : #008a80;
    --white-color       : #FFFFFF;
    --divider-color     : #2E2E2E1A;
    --dark-divider-color: #FFFFFF1A;
    --error-color       : rgb(200, 70, 70);

    /* Typography */
    --heading-font : 'Cormorant Garamond', Georgia, serif;
    --default-font : 'Montserrat', sans-serif;
    --accent-font  : 'Montserrat', sans-serif;
}

/* ----------------------------------------------------------
   02. Global resets
---------------------------------------------------------- */
body {
    font-family: var(--default-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
}

h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.15;
    color: var(--primary-color);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }

p { line-height: 1.8; }

a { color: var(--accent-color); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--accent-dark); }

/* ----------------------------------------------------------
   03. Buttons
---------------------------------------------------------- */
/* Kill template's arrow-box pseudo-elements */
.btn-default::before,
.btn-default::after { content: none !important; }

.btn-default {
    font-family: var(--default-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 14px 32px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn-default:hover {
    background: var(--primary-color);
    color: var(--white-color);
}
.btn-default.btn-highlighted {
    background: var(--primary-color);
    color: var(--white-color);
}
.btn-default.btn-highlighted:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-default.btn-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white-color);
}
.btn-default.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* ----------------------------------------------------------
   04. Header
---------------------------------------------------------- */
.main-header .header-sticky {
    transition: box-shadow .4s ease, padding .3s ease;
    padding: 0px 0;
}

/* Logo sizing */
.main-header .header-sticky .logo-dark,
.main-header .header-sticky .logo-white { height: 64px; width: auto; }

/* Default (non-transparent pages): dark logo */
.main-header .navbar-brand .logo-white { display: none; }
.main-header .navbar-brand .logo-dark  { display: block; }

/* Scrolled state — glassmorphism, white logo + white links */
.main-header .header-sticky.active {
    background: rgba(12, 12, 12, 0.62) !important;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 2px 40px rgba(0,0,0,.3);
    padding: 0px 0;
}
.main-header .header-sticky.active .navbar-brand .logo-dark  { display: none; }
.main-header .header-sticky.active .navbar-brand .logo-white { display: block; }
.main-header .header-sticky.active .nav-link {
    color: rgba(255,255,255,.85) !important;
}
.main-header .header-sticky.active .nav-link:hover { color: #fff !important; }
.main-header .header-sticky.active .btn-highlighted {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

/* Transparent header (homepage, over dark hero) */
.header-transparent .header-sticky:not(.active) .navbar-brand .logo-white { display: block; }
.header-transparent .header-sticky:not(.active) .navbar-brand .logo-dark  { display: none; }
.header-transparent .header-sticky:not(.active) .nav-link {
    color: rgba(255,255,255,.9) !important;
}
.header-transparent .header-sticky:not(.active) .nav-link:hover { color: #fff !important; }
.header-transparent .header-sticky:not(.active) .btn-highlighted {
    background: transparent !important;
    border-color: rgba(255,255,255,.7) !important;
    color: #fff !important;
}
.header-transparent .header-sticky:not(.active) .btn-highlighted:hover {
    background: #fff !important;
    color: var(--primary-color) !important;
}

.navbar .nav-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary-color);
    padding: 6px 16px !important;
    transition: color .25s ease;
}
.navbar .nav-link:hover { color: var(--accent-color); }
.navbar .nav-item.active > .nav-link { color: var(--accent-color); }

/* ----------------------------------------------------------
   05. Section titles
---------------------------------------------------------- */
.section-title .sub-title {
    font-family: var(--default-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.section-title .sub-title::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent-color);
}
.section-title h2 { margin-bottom: 20px; }
.section-title p  { color: var(--text-color); max-width: 520px; }

/* ----------------------------------------------------------
   06. Hero
---------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;  /* CSS parallax */
}
@media (max-width: 991px) {
    .hero { background-attachment: scroll; } /* iOS fix */
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.65) 40%, rgba(0,0,0,.2));
    z-index: 1;
}
.hero .container { position: relative; z-index: 2; }

.hero .section-title .sub-title { color: rgba(255,255,255,.7); }
.hero .section-title .sub-title::before { background: rgba(255,255,255,.5); }
.hero .section-title h1 {
    font-family: var(--heading-font);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    color: #fff;
    line-height: 1.1;
    font-style: italic;
}
.hero .section-title h1 span { font-style: normal; font-weight: 600; }
.hero-desc { color: rgba(255,255,255,.82); font-size: 18px; max-width: 500px; margin: 24px 0 40px; line-height: 1.7; }

/* Hero buttons — VER PROJECTOS: solid white (primary CTA) */
.hero .btn-default.btn-highlighted {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color);
}
.hero .btn-default.btn-highlighted:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
/* FALE CONNOSCO: white outline (secondary CTA) */
.hero .btn-default:not(.btn-highlighted) {
    background: transparent;
    border-color: rgba(255,255,255,.75);
    color: #fff;
}
.hero .btn-default:not(.btn-highlighted):hover {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color);
}

/* ----------------------------------------------------------
   07. About / Quem Somos
---------------------------------------------------------- */
#quem-somos { padding: 100px 0; overflow: hidden; }
.about-image-wrapper { width: 100%; }
.about-image-main {
    width: 100%;
    display: block;
    margin-top: -100px;
    margin-bottom: -100px;
    transform: scale(1.3);
    transform-origin: center center;
}
.team-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid var(--divider-color);
    transition: box-shadow .3s ease, transform .3s ease;
}
.team-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
    transform: translateY(-4px);
}
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    margin-bottom: 16px;
    filter: grayscale(20%);
}
.team-card h5 {
    font-family: var(--default-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.team-card span {
    font-size: 12px;
    color: var(--accent-color);
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ----------------------------------------------------------
   08. Services / Serviços
---------------------------------------------------------- */
#servicos { padding: 100px 0; background: var(--secondary-color); }
.service-card {
    padding: 48px 36px;
    background: #fff;
    border-bottom: 3px solid transparent;
    transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
    height: 100%;
}
.service-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(0,0,0,.07);
    transform: translateY(-4px);
}
.service-card .service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-color);
}
.service-card h4 {
    font-family: var(--default-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.service-card p { font-size: 14px; color: var(--text-color); }

/* ----------------------------------------------------------
   09. Featured Projects (homepage)
---------------------------------------------------------- */
#projectos-destaque { padding: 100px 0; }
.project-card {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 4/3;
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.25,.46,.45,.94);
}
.project-card:hover img { transform: scale(1.05); }
.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity .4s ease;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-overlay h4 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 4px;
}
.project-card-overlay span {
    font-size: 11px;
    color: rgba(255,255,255,.7);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.project-card-overlay .project-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 24px;
    transition: background .3s, border-color .3s;
}
.project-card:hover .project-arrow {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.project-card-overlay .project-arrow i { color: #fff; font-size: 14px; }

/* ----------------------------------------------------------
   10. CTA Band
---------------------------------------------------------- */
.cta-band {
    padding: 90px 0;
    background: var(--primary-color);
}
.cta-band h2 {
    color: #fff;
    font-style: italic;
    font-weight: 300;
}
.cta-band h2 span { font-style: normal; font-weight: 600; }
.cta-band p { color: rgba(255,255,255,.65); }

/* ----------------------------------------------------------
   11. Projects page
---------------------------------------------------------- */
.page-header-section {
    padding: 140px 0 70px;
    background: var(--secondary-color);
    position: relative;
}
.page-header-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-style: italic;
    font-weight: 300;
}
.page-breadcrumb {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-color);
}
.page-breadcrumb a { color: var(--text-color); }
.page-breadcrumb .separator { margin: 0 10px; color: var(--accent-color); }
.page-breadcrumb .current { color: var(--accent-color); }

/* Projects grid */
.projects-section { padding: 80px 0 100px; }
.projects-grid .project-card { margin-bottom: 28px; }

/* Lightbox gallery (single project) */
.gallery-grid { padding: 60px 0 100px; }
.gallery-item {
    position: relative;
    overflow: hidden;
    display: block;
    margin-bottom: 16px;
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.25,.46,.45,.94);
    display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .gallery-zoom {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .35s ease;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-item .gallery-zoom i { color: #fff; font-size: 22px; }

/* ----------------------------------------------------------
   12. Contacts
---------------------------------------------------------- */
.contacts-section { padding: 80px 0 100px; }
.contact-info-card {
    padding: 40px;
    background: var(--secondary-color);
    height: 100%;
}
.contact-info-card h5 {
    font-family: var(--default-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 32px;
}
.contact-info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    align-items: flex-start;
}
.contact-info-item .icon {
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
.contact-info-item .info h6 {
    font-family: var(--default-font);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.contact-info-item .info p,
.contact-info-item .info a {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
}

/* Contact form */
.contact-form-wrapper { padding: 40px; border: 1px solid var(--divider-color); }
.contact-form-wrapper h4 {
    font-family: var(--default-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 32px;
}
.form-control {
    border: 0;
    border-bottom: 1px solid var(--divider-color);
    border-radius: 0;
    padding: 14px 0;
    font-size: 14px;
    background: transparent;
    color: var(--primary-color);
    transition: border-color .25s ease;
}
.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
    background: transparent;
}
.form-control::placeholder { color: #aaa; font-size: 13px; }
.form-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.form-alert {
    font-size: 13px;
    padding: 12px 20px;
    margin-bottom: 20px;
}
.form-alert.success { background: #e8f5e9; color: #2e7d32; border-left: 3px solid #2e7d32; }
.form-alert.error   { background: #ffebee; color: #c62828; border-left: 3px solid #c62828; }

/* ----------------------------------------------------------
   13. Footer
---------------------------------------------------------- */
.footer { background: var(--primary-color); color: rgba(255,255,255,.65); }
.footer-top { padding: 80px 0 60px; }
.footer-logo { height: 72px; width: auto; }
.footer-tagline { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-heading {
    font-family: var(--default-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,.55);
    transition: color .25s ease;
}
.footer-links a:hover { color: var(--accent-color); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    align-items: flex-start;
}
.footer-contact-list li .footer-contact-icon {
    color: var(--accent-color);
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
}
.footer-contact-list li a { color: rgba(255,255,255,.55); }
.footer-contact-list li a:hover { color: var(--accent-color); }
.footer-bottom {
    border-top: 1px solid var(--dark-divider-color);
    padding: 22px 0;
}
.footer-copyright { font-size: 12px; color: rgba(255,255,255,.35); margin: 0; }
.footer-admin-link { font-size: 11px; color: rgba(255,255,255,.2); letter-spacing: .06em; }
.footer-admin-link:hover { color: rgba(255,255,255,.5); }

/* ----------------------------------------------------------
   14. Preloader
---------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------------------------
   15. Utilities
---------------------------------------------------------- */
.dark-section { background: var(--primary-color); }
.accent-text   { color: var(--accent-color); }
.section-pad   { padding: 100px 0; }

/* ----------------------------------------------------------
   16. Responsive
---------------------------------------------------------- */
@media (max-width: 991px) {
    #quem-somos, #servicos, #projectos-destaque, .section-pad { padding: 70px 0; }
    .page-header-section { padding: 120px 0 50px; }
    .about-image-main {
        width: 70%;
        margin: 0 auto 40px;
        transform: none;
    }
}
@media (max-width: 767px) {
    #quem-somos, #servicos, #projectos-destaque, .section-pad { padding: 50px 0; }
    .contact-form-wrapper, .contact-info-card { padding: 28px; }
    .cta-band { padding: 60px 0; }
    .footer-top { padding: 60px 0 40px; }
    #quem-somos .row { --bs-gutter-y: 1rem; }
    .about-image-main {
        width: 78%;
        margin: 0 auto;
        transform: none;
    }
}
