/*
Theme Name: HomelynixHub Mediterranean Sunset
Theme URI: https://homelynixhub.com/
Author: HomelynixHub
Description: Premium Mediterranean Sunset home improvement and real estate authority theme.
Version: 1.0.0
Text Domain: homelynixhub
*/
:root{--cream:#fff7e8;--paper:#fffdf7;--terracotta:#d9653b;--terracotta-dark:#a94428;--azure:#1678a8;--azure-dark:#0a4d70;--ink:#19313a;--sand:#e9c998;--line:#ead8ba;--shadow:0 18px 50px rgba(25,49,58,.12)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.65}img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none}.wrap{width:min(1180px,calc(100% - 40px));margin:auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,247,232,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;gap:24px}.brand img,.footer-logo{width:auto;height:44px}.nav{margin-left:auto}.nav ul{display:flex;gap:22px;list-style:none;margin:0;padding:0}.nav a{font-weight:700;font-size:14px}.nav a:hover{color:var(--terracotta)}.menu-toggle{display:none}.search-trigger,.menu-toggle{border:0;background:var(--azure);color:#fff;border-radius:999px;min-width:42px;height:42px;font-weight:800}.search-overlay{position:fixed;inset:0;background:rgba(10,77,112,.94);display:none;place-items:center;z-index:100}.search-overlay.open{display:grid}.search-close{position:absolute;right:28px;top:20px;border:0;background:none;color:#fff;font-size:42px}.search-box{width:min(650px,90%);color:#fff}.search-box span{display:block;margin-bottom:12px;font-weight:800;letter-spacing:.12em}.search-form{display:flex}.search-form label{flex:1}.search-field{width:100%;padding:17px 18px;border:0;border-radius:14px 0 0 14px;font-size:16px}.search-submit{border:0;background:var(--terracotta);color:#fff;padding:0 24px;border-radius:0 14px 14px 0;font-weight:800}.sunset-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#f6a05e 0%,#e76e45 44%,#2a91bd 100%);color:#fff;min-height:680px}.mosaic-band{height:18px;background:repeating-linear-gradient(45deg,#fff7e8 0 12px,#1678a8 12px 24px,#d9653b 24px 36px,#e9c998 36px 48px)}.hero-shell{min-height:610px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:50px}.hero-copy{max-width:690px;position:relative;z-index:2}.eyebrow{font-size:12px;font-weight:900;letter-spacing:.16em;color:var(--terracotta-dark)}.sunset-hero .eyebrow{color:#fff7d8}.hero-copy h1,.section-intro h2,.guide-heading h2,.article h1,.section-head h1{font-family:Georgia,'Times New Roman',serif;line-height:1.08}.hero-copy h1{font-size:clamp(48px,6vw,84px);margin:.2em 0}.hero-copy p{font-size:20px;max-width:670px}.hero-search{max-width:610px;margin-top:28px}.hero-links{display:flex;align-items:center;gap:20px;margin-top:18px}.hero-links a,.older-posts{background:#fff;color:var(--azure-dark);padding:13px 20px;border-radius:999px;font-weight:900}.sun-orbit{width:420px;height:420px;border:2px solid rgba(255,255,255,.45);border-radius:50%;display:grid;place-items:center;position:relative}.sun-orbit:before,.sun-orbit:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.32);border-radius:50%;inset:38px}.sun-orbit:after{inset:92px}.sun-orbit span{width:180px;height:180px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff9b0,#ffd25e 50%,#f49a40);box-shadow:0 0 90px rgba(255,235,140,.7)}.wave-cut{position:absolute;left:-5%;right:-5%;bottom:-75px;height:150px;background:var(--cream);border-radius:50% 50% 0 0}.pillar-section{padding:110px 0 80px}.section-intro{max-width:760px;margin:0 auto 42px;text-align:center}.section-intro h2,.guide-heading h2{font-size:clamp(36px,5vw,58px);margin:.25em 0}.pillar-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.pillar-grid a{background:var(--paper);border:1px solid var(--line);border-radius:26px;padding:28px;box-shadow:var(--shadow);position:relative;overflow:hidden}.pillar-grid a:after{content:"";position:absolute;right:-24px;bottom:-24px;width:90px;height:90px;border-radius:50%;background:rgba(22,120,168,.08)}.pillar-grid span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--azure);color:#fff;font-size:24px}.pillar-grid small{display:block;margin-top:18px;color:var(--terracotta);font-weight:900}.pillar-grid b{display:block;font-family:Georgia,serif;font-size:28px;margin:3px 0 10px}.pillar-grid i{font-style:normal;color:var(--azure);font-weight:800}.cred-strip{background:var(--azure-dark);color:#fff;padding:28px 0;border-top:8px solid var(--sand);border-bottom:8px solid var(--terracotta)}.cred-grid{display:grid;grid-template-columns:repeat(4,1fr)}.cred-grid div{text-align:center;border-right:1px solid rgba(255,255,255,.2)}.cred-grid div:last-child{border:0}.cred-grid strong{font-family:Georgia,serif;font-size:38px;display:block}.guide-section{padding:90px 0;background:linear-gradient(#fffdf7,#f7ead5)}.guide-heading{display:grid;grid-template-columns:1fr 420px;gap:40px;align-items:end;margin-bottom:40px}.guide-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:24px}.guide-card{grid-column:span 4;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}.guide-card:first-child,.guide-card:nth-child(5){grid-column:span 8}.guide-card a{display:grid;height:100%}.guide-card:first-child a,.guide-card:nth-child(5) a{grid-template-columns:1.15fr .85fr}.guide-image{position:relative;min-height:250px;background:#ddd}.guide-image img{width:100%;height:100%;object-fit:cover}.guide-image span{position:absolute;left:14px;top:14px;background:var(--terracotta);color:#fff;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:900}.guide-copy{padding:24px}.guide-copy small,.meta{color:var(--terracotta);font-weight:900}.guide-copy h3{font-family:Georgia,serif;font-size:28px;line-height:1.15;margin:.35em 0}.guide-copy b{color:var(--azure)}.pagination{text-align:center;margin-top:44px}.site-footer{background:#113a50;color:#fff;padding:55px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px}.footer-grid a{display:block;margin:8px 0;color:#dceef7}.copyright{border-top:1px solid rgba(255,255,255,.18);padding-top:18px;margin-top:34px}.content-shell{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:44px;padding:70px 0}.article{background:#fff;border-radius:24px;padding:clamp(24px,5vw,56px);box-shadow:var(--shadow)}.article h1{font-size:clamp(40px,5vw,66px)}.entry-content{font-size:18px}.entry-content h2{font-family:Georgia,serif;font-size:36px}.in-article-links{margin:28px 0;padding:18px;border-left:5px solid var(--terracotta);background:#fff7e8}.related{margin-top:55px;border-top:1px solid var(--line);padding-top:35px}.related-grid,.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.related-card,.resource-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.related-card img,.resource-card img{aspect-ratio:16/10;object-fit:cover;width:100%}.related-card div,.card-overlay{padding:18px}.sidebar-box{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;margin-bottom:20px}.sidebar{position:sticky;top:100px;height:max-content}.section{padding:70px 0}.section-head{margin-bottom:30px}.resource-card h2{font-family:Georgia,serif}.page-template-default main>.wrap{padding:60px 0}.page-template-default .content-shell{grid-template-columns:minmax(0,1fr)}.error404 main{padding:80px 20px;text-align:center}
@media(max-width:900px){.menu-toggle{display:block;margin-left:auto}.nav{display:none;position:absolute;left:20px;right:20px;top:70px;background:#fff7e8;padding:18px;border-radius:16px;box-shadow:var(--shadow)}.nav.open{display:block}.nav ul{flex-direction:column}.hero-shell{grid-template-columns:1fr;padding:70px 0 120px}.sun-orbit{display:none}.pillar-grid{grid-template-columns:repeat(2,1fr)}.guide-heading{grid-template-columns:1fr}.guide-card,.guide-card:first-child,.guide-card:nth-child(5){grid-column:span 6}.guide-card:first-child a,.guide-card:nth-child(5) a{grid-template-columns:1fr}.content-shell{grid-template-columns:1fr}.sidebar{position:static}.related-grid,.resource-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.wrap{width:min(100% - 24px,1180px)}.header-inner{gap:10px;min-height:68px}.brand img{height:36px;max-width:190px}.search-trigger,.menu-toggle{min-width:38px;height:38px;font-size:11px}.hero-copy h1{font-size:46px}.hero-copy p{font-size:17px}.hero-links{align-items:flex-start;flex-direction:column}.pillar-grid,.cred-grid,.related-grid,.resource-grid{grid-template-columns:1fr}.cred-grid div{border-right:0;border-bottom:1px solid rgba(255,255,255,.18);padding:14px}.guide-card,.guide-card:first-child,.guide-card:nth-child(5){grid-column:1/-1}.footer-grid{grid-template-columns:1fr}.article{padding:24px}.search-submit{padding:0 14px}}

/* ============================================================
   FIX PATCH — consolidated footer + search styling.
   Replaces two earlier, conflicting "quick fix" layers: one set
   rules for .search-field/.search-submit classes that don't even
   exist in searchform.php (dead CSS, never applied); the other
   redeclared .footer-grid multiple times with different column
   counts, and the very first (3-column) definition didn't match
   the 4 real footer columns — so the last column wrapped onto
   its own row instead of sitting alongside the others.
   ============================================================ */

/* Small nav polish — kept from the earlier patch, minus the !important
   overrides that were fighting the mobile menu-toggle's open/close logic */
.nav ul{align-items:center;flex-wrap:nowrap;}
.nav li{white-space:nowrap;}

/* Standard WordPress accessibility class — visually hides text while
   keeping it available to screen readers (used by the search label). */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* Modern search box */
.search-panel{display:flex;align-items:stretch;background:#fff;border:1px solid rgba(22,120,168,.18);border-radius:999px;overflow:hidden;box-shadow:0 10px 30px rgba(25,49,58,.12);transition:box-shadow .2s ease;}
.search-panel:focus-within{box-shadow:0 0 0 4px rgba(22,120,168,.18),0 10px 30px rgba(25,49,58,.12);border-color:var(--azure);}
.search-panel .search-field{flex:1;height:54px;border:0;outline:none;padding:0 22px;font-size:16px;background:transparent;color:var(--ink);}
.search-panel .search-field::placeholder{color:#8fa3ac;}
.search-panel .search-submit{height:54px;min-width:60px;border:0;background:var(--terracotta);color:#fff;font-weight:800;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .2s ease;}
.search-panel .search-submit:hover{background:var(--terracotta-dark);}
.search-box .search-panel{background:#fff;}

/* Footer — one definitive grid: brand column + 3 link columns */
.site-footer{background:#113a50;color:#fff;padding:70px 0 25px;}
.site-footer .footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:45px;align-items:start;}
.site-footer .footer-brand p{max-width:320px;color:#cfe1ea;}
.site-footer .footer-col h3{margin:0 0 14px;color:#fff;}
.site-footer .footer-col{display:flex;flex-direction:column;gap:10px;}
.site-footer .footer-col a{display:block;color:#dceef7;line-height:1.5;white-space:normal;}
.site-footer .footer-col a:hover{color:var(--terracotta);}
.site-footer .copyright{border-top:1px solid rgba(255,255,255,.18);padding-top:18px;margin-top:34px;color:#cfe1ea;font-size:14px;}
@media(max-width:900px){
	.site-footer .footer-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:600px){
	.site-footer .footer-grid{grid-template-columns:1fr;}
}
