/*
Theme Name: Main Street Vintage
Theme URI: https://mainstreetsiteco.com
Author: The Main Street Website Company
Author URI: https://mainstreetsiteco.com
Description: A hometown-vintage WordPress theme with fully customizable colors, section backgrounds, hero graphic, and widget-ready layout. Built for The Main Street Website Company.
Version: 1.5.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mainstreet-vintage
*/

/* -----------------------------------------------------------
   0. CSS variables (defaults — overridden inline by Customizer)
----------------------------------------------------------- */
:root{
	--msw-cream:        #f3ead6;
	--msw-cream-dark:   #e9dcbd;
	--msw-green:        #1e3a2f;
	--msw-green-light:  #27473a;
	--msw-maroon:       #7a1f1f;
	--msw-gold:         #b8944f;
	--msw-text:         #2b2b26;
	--msw-text-light:   #f3ead6;

	--msw-font-display: 'Playfair Display', Georgia, serif;
	--msw-font-body:    'Lora', Georgia, serif;
	--msw-font-script:  'Alex Brush', cursive;
	--msw-font-nav:     'Jost', Arial, sans-serif;
}

/* -----------------------------------------------------------
   1. Reset & base
----------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
	margin:0;
	background:var(--msw-cream);
	color:var(--msw-text);
	font-family:var(--msw-font-body);
	font-size:17px;
	line-height:1.65;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--msw-maroon); text-decoration:none; }
a:hover{ text-decoration:underline; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--msw-font-display); font-weight:700; margin:0 0 .5em; color:var(--msw-green); }
.container{ max-width:1180px; margin:0 auto; padding:0 24px; }
.screen-reader-text{ position:absolute !important; clip:rect(1px,1px,1px,1px); overflow:hidden; height:1px; width:1px; }
.btn{
	display:inline-block;
	font-family:var(--msw-font-nav);
	text-transform:uppercase;
	letter-spacing:.08em;
	font-size:13px;
	font-weight:600;
	padding:14px 26px;
	background:var(--msw-green);
	color:var(--msw-text-light);
	border:1px solid var(--msw-green);
	cursor:pointer;
}
.btn:hover{ background:transparent; color:var(--msw-green); text-decoration:none; }
.btn-outline{ background:transparent; color:var(--msw-green); }
.btn-outline:hover{ background:var(--msw-green); color:var(--msw-text-light); }
.section-bg{ background-size:cover; background-position:center; }

/* -----------------------------------------------------------
   2. Masthead (logo / tagline / hero graphic)
----------------------------------------------------------- */
.site-masthead{
	background:var(--msw-cream);
	padding:40px 24px 30px;
	text-align:center;
	position:relative;
	border-bottom:3px double var(--msw-gold);
}
.header-graphic-only .site-masthead{ padding-top:56px; padding-bottom:40px; }
.site-masthead .frame-corner{
	position:absolute;
	font-size:34px;
	color:var(--msw-gold);
	opacity:.6;
	font-family:serif;
}
.site-masthead .frame-corner.tl{ top:14px; left:14px; }
.site-masthead .frame-corner.tr{ top:14px; right:14px; transform:scaleX(-1); }
.site-masthead .frame-corner.bl{ bottom:14px; left:14px; transform:scaleY(-1); }
.site-masthead .frame-corner.br{ bottom:14px; right:14px; transform:scale(-1); }

.site-branding{ max-width:640px; margin:0 auto; }
.site-title{ font-size:clamp(2rem,5vw,3.2rem); margin:0; letter-spacing:.01em; }
.site-title a{ color:var(--msw-green); text-decoration:none; }
.site-description{
	font-family:var(--msw-font-script);
	font-size:1.4rem;
	color:var(--msw-maroon);
	margin-top:6px;
}
.custom-logo-link img{ margin:0 auto; }

.site-hero-graphic{ margin-top:26px; }
.site-hero-graphic img{ width:100%; object-fit:cover; display:block; } /* height set via Customizer, see inc/customizer.php */
.masthead-tagline{
	font-family:var(--msw-font-script);
	font-size:1.1rem;
	color:var(--msw-green);
	margin-top:16px;
}

/* -----------------------------------------------------------
   3. Primary navigation
----------------------------------------------------------- */
.site-nav{ background:var(--msw-green); border-bottom:4px solid var(--msw-maroon); }
.site-nav .container{ display:flex; align-items:center; justify-content:space-between; }
.menu-toggle{
	display:none; background:none; border:none; color:var(--msw-text-light);
	font-size:24px; padding:16px 0; cursor:pointer;
}
.primary-menu{ display:flex; flex-wrap:wrap; }
.primary-menu li a{
	display:block;
	padding:18px 20px;
	font-family:var(--msw-font-nav);
	text-transform:uppercase;
	letter-spacing:.06em;
	font-size:14px;
	font-weight:600;
	color:var(--msw-text-light);
}
.primary-menu li a:hover,
.primary-menu li.current-menu-item > a{
	background:var(--msw-maroon);
	text-decoration:none;
}
@media (max-width:860px){
	.menu-toggle{ display:block; }
	.primary-menu{
		display:none;
		flex-direction:column;
		width:100%;
	}
	.primary-menu.is-open{ display:flex; }
	.site-nav .container{ flex-wrap:wrap; }
}

/* -----------------------------------------------------------
   4. Layout: sidebar + content
----------------------------------------------------------- */
.site-main-wrap{ padding:50px 0; }
.layout-grid{ display:grid; grid-template-columns:280px 1fr; gap:40px; }
@media (max-width:900px){ .layout-grid{ grid-template-columns:1fr; } }

/* Sidebar widget area */
.widget{
	background:var(--msw-cream-dark);
	border:1px solid var(--msw-gold);
	padding:24px;
	margin-bottom:26px;
}
.widget-title{
	font-family:var(--msw-font-script);
	font-size:1.5rem;
	color:var(--msw-maroon);
	border-bottom:1px solid var(--msw-gold);
	padding-bottom:8px;
	margin-bottom:14px;
}
.widget ul li{ padding:6px 0; border-bottom:1px dotted rgba(0,0,0,.15); }
.widget.widget-cta{ background:var(--msw-maroon); color:var(--msw-text-light); text-align:center; }
.widget.widget-cta .widget-title{ color:var(--msw-text-light); border-color:rgba(255,255,255,.4); }
.widget.widget-cta .btn{ background:var(--msw-cream); color:var(--msw-green); border-color:var(--msw-cream); margin-top:10px; }

/* -----------------------------------------------------------
   5. Hero / welcome section
----------------------------------------------------------- */
.hero-section{ padding:50px; border:1px solid var(--msw-gold); background:var(--msw-cream-dark); }
.hero-flex{ display:grid; grid-template-columns:1.1fr .9fr; gap:40px; align-items:center; }
@media (max-width:760px){ .hero-flex{ grid-template-columns:1fr; } }
.hero-heading{ font-size:clamp(1.6rem,3vw,2.4rem); }
.hero-subheading{ color:var(--msw-maroon); font-family:var(--msw-font-display); font-style:italic; font-size:1.2rem; }
.hero-photo-frame{
	background:#fffdf7;
	padding:14px 14px 34px;
	box-shadow:0 10px 25px rgba(0,0,0,.25);
	transform:rotate(2deg);
}
.hero-photo-frame img{ display:block; }

/* -----------------------------------------------------------
   6. Feature cards (widget area: front-features)
----------------------------------------------------------- */
.features-section{ margin-top:40px; }
.features-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:24px; }
.feature-card{
	background:var(--msw-cream-dark);
	border:1px solid var(--msw-gold);
	padding:34px 26px;
	text-align:center;
}
.feature-icon{
	width:64px; height:64px; margin:0 auto 16px;
	border-radius:50%; border:2px solid var(--msw-maroon);
	display:flex; align-items:center; justify-content:center;
	font-size:26px; color:var(--msw-maroon);
}
.feature-card h3{ font-size:1.3rem; }
.feature-card p{ margin-bottom:18px; }

/* -----------------------------------------------------------
   7. Quote section
----------------------------------------------------------- */
.quote-section{ padding:60px 24px; text-align:center; margin-top:40px; }
.quote-section blockquote{
	max-width:760px; margin:0 auto;
	font-family:var(--msw-font-display); font-style:italic;
	font-size:1.5rem; color:var(--msw-green);
}
.quote-section blockquote::before{ content:'\201C'; color:var(--msw-gold); font-size:2.5rem; margin-right:6px; }
.quote-section blockquote::after{ content:'\201D'; color:var(--msw-gold); font-size:2.5rem; margin-left:6px; }

/* -----------------------------------------------------------
   8. Footer
----------------------------------------------------------- */
.site-footer{ background:var(--msw-green); color:var(--msw-text-light); padding:60px 24px 20px; }
.footer-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:36px; margin-bottom:40px; }
.site-footer .widget-title{ color:var(--msw-text-light); font-family:var(--msw-font-nav); text-transform:uppercase; font-size:.95rem; letter-spacing:.06em; border-color:rgba(255,255,255,.3); }
.site-footer a{ color:var(--msw-text-light); }
.site-footer .widget ul li{ border-color:rgba(255,255,255,.15); padding:4px 0; }
.site-footer .widget{ background:none; border:none; padding:0; margin-bottom:0; }
.footer-newsletter input[type=text],
.footer-newsletter input[type=email]{
	width:100%; padding:10px 12px; margin-bottom:10px;
	background:transparent; border:1px solid rgba(255,255,255,.5); color:var(--msw-text-light);
}
.footer-newsletter input::placeholder{ color:rgba(255,255,255,.6); }
.social-menu{ display:flex; gap:12px; margin-top:14px; }
.social-menu a{
	width:36px; height:36px; border-radius:50%; background:var(--msw-gold);
	display:flex; align-items:center; justify-content:center; color:var(--msw-green);
}
.footer-bottom{
	border-top:1px solid rgba(255,255,255,.2);
	padding-top:20px; text-align:center; font-size:.85rem; color:rgba(255,255,255,.75);
}

/* -----------------------------------------------------------
   9a. Splash Page template
----------------------------------------------------------- */
.top-utility-nav{ background:var(--msw-cream); border-bottom:1px solid var(--msw-gold); padding:6px 0; }
.top-utility-nav-row{ display:flex; align-items:center; }
.splash-menu-wrap{ display:flex; align-items:center; justify-content:space-between; flex:1; gap:20px; }
.splash-top-menu{ display:flex; flex-wrap:wrap; gap:6px; }
.splash-top-menu li a{
	display:block; padding:10px 18px; color:var(--msw-green);
	font-family:var(--msw-font-nav); text-transform:uppercase; letter-spacing:.08em; font-size:13px; font-weight:600;
}
.splash-top-menu li a:hover,
.splash-top-menu li.current-menu-item a{ color:var(--msw-maroon); text-decoration:none; }
.top-utility-nav .menu-toggle{ display:none; color:var(--msw-green); }
@media (max-width:860px){
	.top-utility-nav .menu-toggle{ display:block; }
	.splash-menu-wrap{ display:none; flex-direction:column; align-items:stretch; width:100%; }
	.splash-menu-wrap.is-open{ display:flex; }
	.splash-top-menu{ flex-direction:column; width:100%; }
}

.splash-masthead .site-hero-graphic{ margin-top:20px; }

.splash-ribbon{ background:var(--msw-cream); border-top:1px solid var(--msw-gold); border-bottom:1px solid var(--msw-gold); padding:14px 0; text-align:center; }
.splash-ribbon p{
	margin:0; color:var(--msw-maroon); font-family:var(--msw-font-nav);
	text-transform:uppercase; letter-spacing:.1em; font-size:.95rem; font-weight:600;
}

.splash-features-section{ padding:50px 0; }
.splash-features-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:22px; align-items:stretch; }
.splash-features-grid .feature-card{ display:flex; flex-direction:column; }

.about-panel{
	background:var(--msw-cream-dark);
	border:2px solid var(--msw-maroon);
	padding:30px 24px;
	text-align:center;
}
.about-panel h3{ color:var(--msw-maroon); }
.about-panel-sub{ font-family:var(--msw-font-display); font-style:italic; font-weight:700; color:var(--msw-green); font-size:1rem; }
.about-panel .btn{ background:var(--msw-maroon); border-color:var(--msw-maroon); margin-top:14px; }
.about-panel .btn:hover{ background:transparent; color:var(--msw-maroon); }

.contact-bar{ background:var(--msw-green); color:var(--msw-text-light); padding:26px 0 0; }
.contact-bar-inner{ display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:space-between; padding-bottom:20px; }
.contact-bar-items{ display:flex; flex-wrap:wrap; gap:34px; }
.contact-item{ display:flex; gap:10px; align-items:flex-start; color:var(--msw-text-light); font-size:.92rem; }
.contact-item .dashicons{ color:var(--msw-gold); }
.contact-item a{ color:var(--msw-text-light); }
.contact-bar-tagline{
	border:1px solid rgba(255,255,255,.4); padding:12px 20px;
	font-family:var(--msw-font-display); font-weight:700; text-align:center; font-size:1rem;
}
.splash-page-content{ padding:40px 0; }

/* -----------------------------------------------------------
   9. Inner pages
----------------------------------------------------------- */
.page-banner{ padding:40px 24px; text-align:center; border-bottom:1px solid var(--msw-gold); }
.entry-content{ max-width:820px; }
.entry-content img{ margin:20px 0; }
