/* Layout and polish fixes, loaded after styles.css and experience.css. */

/* ---------- Header ---------- */
/* The Global Assistance PNG has an opaque white background; multiply lets the translucent header show through. */
.global-logo{mix-blend-mode:multiply}
.cart-trigger{display:inline-flex;align-items:center;justify-content:center}
.cart-count[hidden]{display:none}

/* ---------- Hero ---------- */
.hero-description,.hero-benefit-focus,.plan-note,.faq-list details p{text-wrap:pretty}
.hero-benefit-focus{margin:28px 0 8px}
.hero-plan-teaser{color:var(--muted)}
.scene-season-icon,.property-icon{display:grid;place-items:center;flex:none}
.scene-season-card{max-width:640px}
#servicii h2,#membership-title,.modal h2{text-wrap:balance}
.plans-intro>p{text-wrap:pretty}

/* Hotspots: the drawing sits 45px (9%) lower in its box than the original art; "Exterior" points at the left tree. */
.room-bucatarie{top:33%}
.room-baie{top:31%}
.room-living{top:59%}
.room-tehnic{top:58%}
.room-gradina{left:1%;top:68%}
@media(max-width:960px){.room-gradina{left:11%;top:70%}.room-living{top:56%}}
@media(max-width:600px){.room-gradina{left:7%;top:70%}.room-living{top:55%}.room-tehnic{top:55%}}
@media(max-width:380px){.room-gradina{left:4%;top:73%}.room-living{top:53%}}

/* ---------- Plans: buttons and notes on the same line in both cards ---------- */
.plans-grid{grid-template-rows:repeat(6,auto)}
.offer-card{display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;align-content:start}
.offer-card>.button{margin-top:0;align-self:end}
.offer-card .plan-note{align-self:start}
.offer-card .check-list li .icon{margin-top:calc((1lh - 21px)/2)}
.check-list li .icon{margin-top:calc((1lh - 15px)/2)}

/* ---------- Casa mea ---------- */
.home-profile-card>div:first-child{align-items:flex-start}
.home-quick-card>p{color:var(--muted)}
.home-tabs>button{color:var(--muted)}
.home-tabs>button.active{color:#fff}
.equipment-pills>span{color:#5a6b55}
.text-link{padding:0}
.task-list:has(>.empty-results){border:0;padding:0}
.homes-total strong{text-align:right}
.homes-total strong small{margin-left:0}

/* ---------- Catalog header: search and type select share the card grid ---------- */
.catalog-intro{flex:0 0 calc((100% - 56px)/3);max-width:none}
@media(min-width:961px){#catalog-title br,#membership-title br{display:none}}
.membership-pill{display:flex;width:100%;max-width:none}
.catalog-controls{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px;align-items:stretch}
.catalog-controls .search-box{display:flex;grid-column:span 2;min-height:62px;margin:0}
.category-filters{display:block;padding:0;width:auto;margin:0}
.category-select-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#category-select{height:62px;min-height:62px;border:1px solid var(--line);border-radius:5px;background-color:#f7f9f5;font-size:18px;padding:0 52px 0 18px}
.results-row label[hidden]{display:none}
.catalog-footnote{align-items:flex-start}
.catalog-footnote .icon{margin-top:calc((1lh - 18px)/2)}

/* ---------- Selects: own chevron with a fixed inset, clear hover/focus ---------- */
#category-select,.results-row select,.field select{appearance:none;-webkit-appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2352685a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:16px;background-position:right 18px center;transition:border-color .15s,box-shadow .15s,background-color .15s}
.field select{padding-right:48px}
#category-select:hover,.results-row select:hover,.field select:hover{border-color:#aebfb1}
#category-select:focus-visible,.results-row select:focus-visible,.field select:focus-visible,.search-box:focus-within{outline:0;border-color:var(--green);box-shadow:0 0 0 3px #16854b26}
.results-row label{display:inline-flex;align-items:center;gap:10px}
.results-row select{field-sizing:content;max-width:none;min-height:44px;padding:0 44px 0 14px;border:1px solid var(--line);border-radius:6px;background-color:#fff;background-position:right 14px center;font-weight:600;color:var(--ink);box-shadow:0 1px 2px #1d30270d}
.results-row select:hover{background-color:#f7f9f5}

/* ---------- Service cards: meta rows and footers line up across a row ---------- */
.service-body h3{text-wrap:balance}
.service-description{text-wrap:pretty;margin-bottom:20px}
.service-body .service-meta{margin-top:auto}
.service-body .service-footer{margin-top:0}

/* ---------- Energy partner + banner + section rhythm ---------- */
.energy-spotlight{align-items:center;margin-top:0;margin-bottom:40px}
.energy-spotlight h2{text-wrap:balance}
.energy-brands img{max-width:100%}
.energy-brands img[alt="GOLDSENSE"]{width:100%;max-width:150px}
.solution-banner{margin-bottom:0}
.solution-art{width:auto}
.faq-list details .text-link{color:var(--green);margin:0 0 22px}

/* ---------- Footer ---------- */
.footer-links button{font-size:inherit;line-height:inherit;color:inherit}
.footer-brand img:last-child{mix-blend-mode:multiply}
.demo-dock button:not(.reset-demo){padding:8px 0 8px 16px}

/* ---------- Buttons and focus ---------- */
.text-link{color:var(--green)}
.button.orange:focus-visible{outline-color:var(--ink)}
.home-tabs>button:focus-visible,.package-selector button:focus-visible{outline-offset:-3px}
.service-cover:focus-visible{outline-offset:-5px}
.file-button:focus-within{outline:3px solid var(--orange);outline-offset:4px}
.button.danger{background:#b3402a;color:#fff}
.button.danger:hover{background:#963421}
.close-button{width:40px;height:40px}

/* ---------- Modals and forms ---------- */
.field input:not([type=checkbox]):not([type=radio]),.field select{height:56px;min-height:56px;line-height:1.3}
.field ::placeholder{color:#737f75;opacity:1}
.field :user-invalid,.field select:user-invalid{border-color:#c0492f;background-color:#fff7f5}
.checkbox-label:has(input:user-invalid){color:#a33a25}
.modal-content>.modal-actions:last-child,.modal form>.modal-actions:last-child{position:sticky;bottom:0;z-index:2;background:#fff;padding:14px 0 max(4px,env(safe-area-inset-bottom));box-shadow:0 -12px 14px -8px #fff}
/* Focus and validation scroll a field into view; keep it out from under the sticky header and button row. */
.modal{scroll-padding:150px 0 110px}
.plan-choice small,.subscription-mini>strong>small{display:inline-block;line-height:1.35;vertical-align:baseline;text-align:left;margin-left:8px}
.account-status{align-items:flex-start}
.modal-content>.micro-note{font-size:14px;line-height:1.7;margin:14px 0 22px}
.premium-use{display:flex;margin-bottom:17px}
.premium-use~.checkbox-label{padding-inline:14px}
.quantity-control button{width:32px;height:32px;line-height:1}
.quote-lines strong,.summary-total strong,.detail-price strong{white-space:nowrap;flex:none}
.diagnosis-result-visual{padding-bottom:44px}
.diagnosis-result-visual .product-illustration{height:120px}
body:has(.modal-backdrop) #toast{top:24px;bottom:auto}

/* ---------- Tablet: two card columns ---------- */
@media(min-width:961px){
  .house-art{top:calc(50% - 45px);transform:translate(-50%,-50%)}
}
@media(max-width:960px){
  .catalog-intro{flex-basis:calc((100% - 24px)/2)}
  .catalog-controls{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
  .catalog-controls .search-box{grid-column:auto}
  .service-price strong small{display:block;min-height:2lh;margin-top:6px;color:var(--muted)}
  .mobile-nav a{display:flex;align-items:center;height:100%}
}
@media(max-width:1365px) and (min-width:961px){
  .service-price strong small{display:block;min-height:2lh;margin-top:6px;color:var(--muted)}
  /* Duration + benefit only fit on one line in some cards here; stack them in all cards so rows stay level. */
  .service-meta{flex-direction:column;gap:6px}
}
.energy-brands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.energy-brands span{min-width:0;padding:12px 10px}
@media(max-width:1220px){
  .footer-links a,.footer-links button{min-height:40px;display:flex;align-items:center}
}
@media(max-width:1220px) and (min-width:961px){
  .home-profile-card>div:first-child{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
}
@media(max-width:960px){
}
@media(min-width:601px) and (max-width:960px){
  .account-trigger{min-width:44px}
}
@media(max-width:960px){
  /* Below 960px the art box already starts low; lift it back by the drawing's own 9% offset. */
  .house-art{transform:translate(-50%,-9%)}
}
@media(min-width:601px) and (max-width:960px){
  .house-art{transform:translate(-50%,-13%)}
}
@media(max-width:760px){
  .plans-grid{grid-template-columns:1fr}
}
@media(min-width:601px) and (max-width:700px){
  .service-tag{font-size:11px;padding:3px 5px}
}

/* ---------- Phone ---------- */
@media(max-width:600px){
  .catalog-intro{flex-basis:auto}
  .catalog-controls{grid-template-columns:1fr;row-gap:12px}
  .catalog-controls .search-box,#category-select{height:56px;min-height:56px}
  .catalog-controls .search-box{margin-top:0}
  .field input:not([type=checkbox]):not([type=radio]),.field select{height:52px;min-height:52px}
  .hero-copy .text-link,.home-profile-card>.text-link{white-space:normal}
  .home-quick-card>div{width:100%}
  .modal .account-tabs{display:grid;grid-template-columns:1fr 1fr;overflow:visible;white-space:normal}
  .close-button{width:44px;height:44px}
  .modal{scroll-padding:170px 0 140px}
  .modal-content>.modal-actions.stack:last-child,.modal form>.modal-actions.stack:last-child{position:static;box-shadow:none;padding:0}
  .modal-actions .button.outline{flex:0 0 auto;padding-inline:18px}
  .modal-actions .button:not(.outline){flex:1 1 auto}
  .modal-header h2{font-size:22px}
  body:has(.modal-backdrop) #toast{top:auto;bottom:110px}
  .quantity-control button{width:40px;height:40px}
  .remove-button,.modal .text-link,.danger-link{min-height:40px;display:inline-flex;align-items:center}
  .energy-brands span{padding:8px 6px;min-height:64px}
  .video-self{top:11px;bottom:auto;padding:8px;flex-direction:row}
}
