/* Geofama v1.1.2 | Mobile-first presentation layer.
   All desktop photographs, typography, component geometry and backoffice are unchanged.
   This stylesheet targets the public homepage only. */
.gf-mobile-menu-end,.gf-mobile-description,.gf-hero-discover,.gf-mobile-pathways,
.gf-about-mobile-image,.gf-mobile-swipe-note,.gf-mobile-rail-progress,.gf-mobile-sticky-action{display:none}
@media(min-width:1001px){.main-nav a[href="#portfolio"]{display:none}}

@media(max-width:780px){
  :root{--gutter:22px;--header-height:72px}
  html{scroll-padding-top:88px}
  #quem-somos,#servicos,#portfolio,#qualidade,#contactos{scroll-margin-top:90px}
  body{font-size:15px;line-height:1.6;-webkit-text-size-adjust:100%}
  .container{padding-inline:var(--gutter)}
  .site-header,.header-content{min-height:var(--header-height)!important}
  .site-header{background:rgba(43,45,48,.88);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom-color:rgba(243,203,151,.22)}
  .site-header::before,.site-header::after{opacity:.13}
  .header-content{display:flex;gap:13px;padding-block:8px}
  .site-header .brand{min-width:0;margin-right:auto;flex:1 1 auto}
  .geofama-official-logo{width:min(215px,54vw);height:auto;max-height:55px;object-fit:contain;object-position:left center}
  .header-cta{display:none!important}
  .menu-toggle{flex:0 0 46px;width:46px;height:46px;min-height:46px;order:3;border-radius:12px;background:rgba(240,198,142,.075);border:1px solid rgba(241,201,152,.45);gap:5px;padding:13px;z-index:155}
  .menu-toggle span{border-radius:2px}
  .menu-toggle.is-open{background:rgba(240,198,142,.17);border-color:var(--gold-light)}
  .menu-toggle.is-open span:first-child{transform:translateY(7px) rotate(45deg)}
  .menu-toggle.is-open span:last-child{transform:translateY(-7px) rotate(-45deg)}
  .main-nav{position:fixed!important;top:var(--header-height)!important;left:0;right:0;max-height:calc(100dvh - var(--header-height));overflow-y:auto;overscroll-behavior:contain;z-index:151;padding:18px var(--gutter) calc(28px + env(safe-area-inset-bottom));background:linear-gradient(150deg,rgba(46,48,51,.995),rgba(32,34,37,.995));box-shadow:0 22px 65px rgba(0,0,0,.55);border-bottom:1px solid rgba(239,193,135,.45)}
  .main-nav.is-open{display:flex;animation:gf-menu-in .28s ease-out both}
  .main-nav a{font-size:15px;font-weight:650;letter-spacing:.045em;min-height:56px;padding:17px 6px;border-bottom:1px solid rgba(255,255,255,.1);display:flex;align-items:center}
  .main-nav a[href="#portfolio"]{display:flex}
  .main-nav a::after{display:none}
  .gf-mobile-menu-end{display:block;padding-top:21px}
  .gf-mobile-menu-end p{font-size:13px;line-height:1.6;color:#d8d5d0;margin:0 0 16px;max-width:310px}
  .gf-mobile-menu-end .btn{min-height:51px;width:100%;font-size:12px;justify-content:space-between;padding:14px 19px}
  @keyframes gf-menu-in{from{opacity:.4;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
  /* Hero: crisp copy above a true native-size photo. No background-size scaling or zoom. */
  .hero{height:auto!important;min-height:670px;max-height:none;padding:0!important;display:flex;flex-direction:column;overflow:hidden;background:#34363a}
  .hero-art{position:absolute;inset:auto 0 0!important;height:39%;width:100%;opacity:1!important;background:#303135}
  .hero-art img{width:100%;height:100%;object-fit:cover;object-position:68% center;max-width:100%;max-height:100%}
  .hero-shadow{position:absolute;inset:0;clip-path:none!important;background:linear-gradient(180deg,#38393d 0%,#38393dfc 43%,#38393d 56%,rgba(55,56,60,.8) 63%,rgba(44,45,49,.1) 90%)!important}
  .hero-diagonal{top:auto;left:74%;bottom:-22%;height:53%;opacity:.33;transform:rotate(28deg)}
  .hero-contours{width:190px;height:170px;top:100px;left:-95px;bottom:auto;opacity:.24}
  .hero::before{opacity:.14}
  .hero .gf-hero-glow{display:none}
  .hero-inner{position:relative;z-index:2;height:auto;display:block;padding-top:calc(var(--header-height) + 36px)!important;padding-bottom:236px;width:100%}
  .hero-copy{max-width:580px;padding:0!important}
  .hero-kicker{margin-bottom:20px;font-size:10px;letter-spacing:.16em;line-height:1.4;color:#f2c998;font-weight:800}
  .hero-kicker::before{height:36px;margin-right:13px}
  .hero h1{margin:0 0 16px;font-size:clamp(30px,7.3vw,46px);line-height:1.13;letter-spacing:.035em;max-width:560px}
  .hero h1 span{font-weight:300;letter-spacing:.075em}
  .hero h1 strong{font-weight:710;letter-spacing:.045em;white-space:normal}
  .gf-desktop-description{display:none}
  .gf-mobile-description{display:block;max-width:420px;font-size:15px;color:#e7e5e1;line-height:1.66;margin:0 0 24px}
  .actions{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:10px;max-width:470px}
  .actions .btn{min-height:52px;padding:12px 13px;font-size:10px;line-height:1.35;white-space:normal;text-align:center;gap:10px;letter-spacing:.04em}
  .actions .btn-gold{justify-content:space-between}
  .gf-hero-discover{position:absolute;bottom:17px;left:var(--gutter);right:var(--gutter);display:flex;justify-content:space-between;align-items:center;gap:12px;color:#fff;letter-spacing:.15em;text-transform:uppercase;font-size:10px;font-weight:750;text-shadow:0 1px 12px #0009}
  .gf-down-arrow{display:grid;place-items:center;border:1px solid rgba(241,201,152,.8);border-radius:50%;width:31px;height:31px;color:#f2c998;font-size:18px}
  /* Guided route to actual CMS services; automatically reflects enabled services. */
  .gf-mobile-pathways{display:block;background:#282b2e;border-bottom:1px solid rgba(224,181,132,.38);padding:25px 0 27px}
  .gf-pathways-heading{display:flex;align-items:center;gap:11px;margin-bottom:15px}
  .gf-mini-line{width:25px;height:2px;flex:none;background:#e7b982}
  .gf-pathways-heading h2{margin:0;color:#f5f1eb;font-size:16px;line-height:1.3;font-weight:700;letter-spacing:.035em}
  .gf-pathways-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .gf-pathway{min-width:0;min-height:112px;display:flex;flex-direction:column;align-items:flex-start;padding:13px 11px 10px;background:linear-gradient(150deg,#3a3c40,#313338);border:1px solid rgba(232,186,132,.28);border-radius:11px;transition:background .25s,border-color .25s,transform .25s}
  .gf-pathway:active{transform:scale(.98);border-color:#f3ca92}
  .gf-pathway-number{color:#f1c58f;font-size:10px;font-weight:800;letter-spacing:.1em}
  .gf-pathway-name{font-size:12px;line-height:1.33;font-weight:680;color:#fff;margin-top:9px;overflow-wrap:anywhere}
  .gf-pathway-arrow{color:#f1ca98;margin-top:auto;align-self:flex-end;font-size:17px}
  .gf-pathways-all{display:flex;align-items:center;justify-content:space-between;padding:18px 2px 0;color:#f4c994;font-size:12px;font-weight:750;letter-spacing:.04em}
  .gf-pathways-all span{font-size:19px}
  /* About: real standalone photograph, followed by copy and proofs */
  .about{height:auto!important;min-height:0!important;padding:41px 0 43px!important;overflow:hidden;background:#37393d}
  .about-photo{display:none!important}
  .about-panel{display:none!important}
  .about-content{position:relative;display:block;height:auto}
  .about .eyebrow{margin-bottom:16px}
  .about .section-title{font-size:clamp(27px,6.6vw,35px);letter-spacing:.075em;line-height:1.14;max-width:650px}
  .gf-about-mobile-image{position:relative;display:block;margin:23px 0 24px;border-radius:12px;overflow:hidden;border:1px solid rgba(244,202,150,.2);background:#303234}
  .gf-about-mobile-image img{display:block;width:100%;height:auto;aspect-ratio:1.8;max-height:300px;object-fit:cover;object-position:75% 45%}
  .gf-about-mobile-image::after{content:'';position:absolute;inset:42% 0 0;background:linear-gradient(transparent,rgba(18,19,20,.75));pointer-events:none}
  .gf-about-mobile-image span{position:absolute;z-index:1;left:17px;right:15px;bottom:15px;font-weight:720;letter-spacing:.025em;font-size:13px;color:#fff}
  .about-bottom{display:flex;flex-direction:column;align-items:stretch;max-width:none;gap:21px;margin:0}
  .about-text{max-width:620px;flex:auto;font-size:14px;line-height:1.75;color:#e4e2dd}
  .about-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:none}
  .about-features>div,.about-features>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:15px 10px 13px;background:#303237;border:1px solid rgba(255,255,255,.1);border-radius:10px;font-size:10px;line-height:1.4}
  .about-features .icon{width:29px;height:29px}
  /* Content grid: readable, tappable, no photo zoom */
  .services{padding:45px 0 47px}
  .section-intro{display:block;margin-bottom:25px}
  .section-title{font-size:clamp(27px,6.6vw,36px);letter-spacing:.06em;line-height:1.18}
  .section-title strong{letter-spacing:.045em}
  .eyebrow{font-size:10px;gap:11px;letter-spacing:.2em;margin:0 0 15px}
  .eyebrow::before{width:31px}
  .section-intro>p{font-size:14px;line-height:1.72;margin:17px 0 0;max-width:600px;color:#d8d6d2}
  .services .section-intro{margin-bottom:25px}
  .services-grid{display:grid;grid-template-columns:1fr;gap:13px}
  .service-card{display:grid;grid-template-columns:minmax(112px,39%) minmax(0,1fr);align-items:stretch;min-height:166px;padding:0;overflow:hidden;border:1px solid rgba(234,191,139,.21);border-radius:12px;background:linear-gradient(135deg,#434448,#37393d);box-shadow:0 7px 22px rgba(0,0,0,.09)}
  .service-card:active{border-color:rgba(241,201,152,.8)}
  .service-visual{display:block;height:100%;min-height:0;aspect-ratio:auto;margin:0;clip-path:none;overflow:hidden;background:#303234}
  .service-visual img{width:100%;height:100%;object-fit:cover;object-position:center;transform:none!important;filter:none!important}
  .service-content,.service-card:nth-child(n) .service-content{display:flex;flex-direction:column;border:0;min-height:0;margin:0;padding:13px 12px 14px 13px;min-width:0}
  .service-top{display:flex;align-items:center;justify-content:space-between;height:auto;min-height:25px;margin-bottom:10px;gap:10px}
  .service-number{font-size:12px;font-weight:800}
  .service-icon{width:25px;height:25px}
  .service-content h3{font-size:16px;font-weight:680;line-height:1.3;max-width:none;min-height:0;margin:0 0 7px;overflow-wrap:anywhere}
  .service-content p{font-size:12px;line-height:1.5;color:#e1e0dc;max-width:none;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .service-content::after{content:'Ver serviço  →';color:#f1c995;font-size:11px;font-weight:750;letter-spacing:.045em;margin-top:auto;padding-top:10px}
  /* Portfolio: a horizontal carousel with visible next card and drag gesture */
  .portfolio{padding:45px 0 44px}
  .portfolio .section-title{font-size:clamp(27px,6.6vw,35px);margin:0 0 13px}
  .gf-mobile-swipe-note{display:flex;align-items:center;justify-content:space-between;color:#dfd4c8;letter-spacing:.03em;font-size:12px;margin:0 0 15px}
  .portfolio-arrows{margin:0 0 14px;justify-content:flex-end}
  .portfolio-move{width:45px;height:45px;padding:0;border-radius:50%;display:grid;place-items:center;font-size:21px}
  .portfolio-grid.gf-portfolio-rail{grid-auto-columns:min(83%,370px);grid-template-columns:none;gap:13px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-left:var(--gutter);padding:0 var(--gutter) 8px 0;margin-right:calc(-1 * var(--gutter));scrollbar-width:none}
  .portfolio-grid.gf-portfolio-rail .portfolio-card{scroll-snap-align:start;min-width:0;overflow:hidden;border:1px solid rgba(232,189,131,.24);border-radius:12px;background:#303337}
  .portfolio-picture{width:100%;aspect-ratio:1.64;clip-path:none;border-radius:0}
  .portfolio-picture img{width:100%;height:100%;object-fit:cover;transform:none!important;filter:none!important}
  .portfolio-copy{min-height:0;max-width:100%;margin:0;padding:17px 17px 18px;border:0;gap:6px}
  .portfolio-copy strong{font-size:17px;line-height:1.3}
  .portfolio-copy span{font-size:13px;line-height:1.55;color:#dedbd7}
  .gf-mobile-rail-progress{display:block;height:3px;border-radius:99px;margin-top:14px;background:rgba(255,255,255,.14);overflow:hidden}
  .gf-mobile-rail-progress span{display:block;width:33%;height:100%;background:linear-gradient(90deg,#bd905e,#f5d2a2);transform:translateX(0);transition:transform .2s}
  /* Quality grid prioritizes comfortable text */
  .quality{padding:44px 0 46px}
  .quality-intro{margin-bottom:26px}
  .values-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .value-card,.value-card:nth-child(n){padding:16px!important;border:1px solid rgba(240,198,143,.18);background:rgba(255,255,255,.035);border-radius:10px;min-width:0}
  .value-card:last-child:nth-child(odd){grid-column:1/-1}
  .value-heading{display:flex;align-items:center;gap:10px;min-height:0;margin-bottom:10px}
  .value-heading .icon{width:31px;height:31px}
  .value-heading h3{font-size:12px;font-weight:750;line-height:1.3}
  .value-card p{font-size:12px;line-height:1.55}
  /* Contacts photo + scannable copy + easy one-column input. */
  .contact{padding:0 0 45px;overflow:hidden;background:#36383c}
  .contact-picture{position:relative;display:block;width:100%!important;height:220px;inset:auto;clip-path:polygon(0 0,100% 0,100% 93%,0 100%);border:0;overflow:hidden}
  .contact-picture img{width:100%;height:100%;object-fit:cover;object-position:52% 50%;transform:none!important}
  .contact-content{min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:24px;padding-top:30px}
  .contact-spacer{display:none}
  .contact-message .section-title{font-size:clamp(27px,6.6vw,36px);line-height:1.16;margin-bottom:14px}
  .contact-message>p:last-child{max-width:610px;font-size:14px;line-height:1.7}
  .contact-form{display:grid;grid-template-columns:1fr;gap:12px;padding:18px;border:1px solid rgba(231,189,139,.2);border-radius:13px;background:rgba(25,27,29,.23)}
  .contact-form label,.contact-form .full{grid-column:1/-1}
  .contact-form input,.contact-form select,.contact-form textarea{font-size:16px!important;line-height:1.35;min-height:50px;border-radius:8px;padding:13px 14px;border-color:rgba(255,255,255,.28)}
  .contact-form textarea{min-height:110px}
  .contact-submit{grid-column:1/-1;display:block}
  .contact-submit .btn{min-height:52px;width:100%;justify-content:space-between;padding-inline:18px;font-size:12px}
  .contact-submit p{min-width:0;margin-top:9px;font-size:12px}
  /* Footer mobile hierarchy */
  .footer-inner{display:flex;flex-direction:column;align-items:center;gap:23px;padding-block:35px 27px}
  .brand-footer{border:0;padding:0}
  .brand-footer .geofama-official-logo{width:min(245px,70vw)}
  .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-items:center;column-gap:20px;row-gap:0;width:100%;padding:0;border:0}
  .footer-links a{font-size:11px;padding:12px 5px;min-height:42px}
  .footer-details{width:100%;align-items:stretch;display:flex;flex-direction:column;gap:15px;border-top:1px solid rgba(255,255,255,.13);padding-top:22px}
  .footer-details>span,.footer-details>a{font-size:12px;line-height:1.45;white-space:normal}
  .footer-legal{display:flex;gap:10px 18px;padding-bottom:calc(30px + env(safe-area-inset-bottom));justify-content:center}
  .footer-legal small{flex-basis:100%}
  .footer-legal a,.footer-legal button{font-size:11px;min-height:34px;display:inline-flex;align-items:center}
  /* Bottom conversion strip: shown only after the hero is out of view. */
  .gf-mobile-sticky-action{position:fixed;z-index:88;left:0;right:0;bottom:0;display:flex;align-items:center;gap:9px;padding:10px var(--gutter) calc(10px + env(safe-area-inset-bottom));background:rgba(39,41,44,.97);border-top:1px solid rgba(238,195,138,.3);box-shadow:0 -8px 27px rgba(0,0,0,.26);transform:translateY(115%);opacity:0;pointer-events:none;transition:transform .32s ease,opacity .32s ease}
  .gf-mobile-sticky-action.gf-is-visible{transform:translateY(0);opacity:1;pointer-events:auto}
  .gf-mobile-sticky-explore{min-height:46px;flex:0 0 34%;display:grid;place-items:center;border:1px solid rgba(238,195,138,.5);border-radius:8px;color:#f4d5ae;font-size:12px;font-weight:750}
  .gf-mobile-sticky-quote{min-height:46px;flex:1;background:linear-gradient(110deg,#efc38d,#f8d8ae);color:#232528;display:flex;align-items:center;justify-content:space-between;padding-inline:15px;border:0;border-radius:8px;font-size:12px;font-weight:800;letter-spacing:.03em}
  .gf-mobile-sticky-quote span{font-size:18px}
  .gf-whatsapp{right:15px;bottom:calc(139px + env(safe-area-inset-bottom));width:50px;height:50px;min-width:50px;padding:0;z-index:95;border:2px solid rgba(255,255,255,.34)}
  .gf-whatsapp span{display:none}
  .back-to-top{right:16px;bottom:calc(87px + env(safe-area-inset-bottom));width:46px;height:46px;border-radius:50%;z-index:86}
  .gf-cookie-banner{bottom:calc(13px + env(safe-area-inset-bottom));z-index:240;max-height:80dvh;overflow:auto;padding:17px;border-radius:13px}
  .gf-cookie-banner p{font-size:12px}
  .gf-cookie-actions button{min-height:45px}
  body.modal-open .gf-mobile-sticky-action,body.nav-open .gf-mobile-sticky-action,
  body:has(.gf-cookie-banner:not([hidden])) .gf-mobile-sticky-action{opacity:0!important;pointer-events:none!important;transform:translateY(115%)!important}
  .quote-dialog{max-width:calc(100vw - 14px);border-radius:13px}
  .quote-field input,.quote-field select,.quote-field textarea{font-size:16px!important;min-height:44px}
  .quote-field textarea{min-height:100px}
  .quote-dialog::backdrop{background:rgba(13,14,16,.84)}
}
@media(max-width:390px){
  :root{--gutter:18px}
  .geofama-official-logo{width:min(192px,51vw)}
  .hero{min-height:652px}
  .hero-inner{padding-top:calc(var(--header-height) + 27px)!important;padding-bottom:221px}
  .hero h1{font-size:clamp(27px,7.4vw,32px)}
  .hero-kicker{letter-spacing:.11em;font-size:9px}
  .gf-mobile-description{font-size:14px;margin-bottom:20px}
  .actions{gap:8px}
  .actions .btn{padding:10px 9px;font-size:9px;min-height:48px}
  .gf-pathway{padding:11px 8px 9px;min-height:105px}
  .gf-pathway-name{font-size:11px}
  .service-card{grid-template-columns:36% 64%}
  .service-content,.service-card:nth-child(n) .service-content{padding:12px 11px}
  .service-content h3{font-size:15px}
  .service-content p{font-size:11.5px}
}
@media(prefers-reduced-motion:reduce){
  .gf-mobile-sticky-action,.gf-pathway,.main-nav.is-open{transition:none!important;animation:none!important}
}
@media(max-width:780px){
  .hero-art picture,.service-visual picture,.portfolio-picture picture,.contact-picture picture{display:block;width:100%;height:100%}
  .hero-art picture img,.service-visual picture img,.portfolio-picture picture img,.contact-picture picture img{width:100%;height:100%;object-fit:cover;transform:none!important}
}

/* v1.2.5 - Cinco indicadores Quem Somos em mobile, com distribuição equilibrada */
@media (max-width:780px) {
  .about-features {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:8px;
  }
  .about-features>div,
  .about-features>div:first-child {
    grid-column:span 2;
    min-width:0;
  }
  .about-features>div:nth-child(4),
  .about-features>div:nth-child(5) { grid-column:span 3; }
  .about-features .about-feature-metric strong {font-size:19px;margin-bottom:5px;}
}
@media (max-width:420px) {
  .about-features {grid-template-columns:repeat(2,minmax(0,1fr));}
  .about-features>div,
  .about-features>div:first-child,
  .about-features>div:nth-child(4),
  .about-features>div:nth-child(5) {grid-column:span 1;}
  .about-features>div:last-child {grid-column:1/-1;}
}
