/* =========================================================
   Apex NW RV Roofing — site styles
   Brand: bronze #8A6B46 · gold #C6A673 · brown #4A3828
          deep #2E2219 · cream #F6F1E8
   ========================================================= */
:root {
	--apx-bronze: #8A6B46;
	--apx-bronze-dark: #6E5437;
	--apx-gold: #C6A673;
	--apx-brown: #4A3828;
	--apx-deep: #2E2219;
	--apx-cream: #F6F1E8;
	--apx-line: #E4D8C6;
}

body { color: var(--apx-brown); -webkit-font-smoothing: antialiased; }
.fl-builder-content h1, .fl-builder-content h2, .fl-builder-content h3 { color: var(--apx-deep); letter-spacing: -0.01em; }
.fl-builder-content h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.1; font-weight: 700; margin-bottom: 18px; }
.fl-builder-content h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 600; margin-bottom: 18px; }
.fl-builder-content h3 { font-size: 20px; line-height: 1.35; font-weight: 600; margin: 0 0 8px; }
.fl-builder-content p { margin: 0 0 16px; }
.apx-center, .apx-center .fl-heading { text-align: center; }

/* Eyebrow + lead */
.apx-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--apx-bronze); margin-bottom: 10px !important; }
.apx-lead { font-size: 21px; line-height: 1.5; font-weight: 500; color: var(--apx-deep); }

/* Buttons */
.apx-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 8px; }
.apx-btns.apx-center { justify-content: center; }
.apx-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 28px; border-radius: 6px; border: 2px solid transparent;
	font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none !important;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.apx-btn:hover { transform: translateY(-1px); }
.apx-btn-primary { background: var(--apx-bronze); color: #fff !important; }
.apx-btn-primary:hover { background: var(--apx-bronze-dark); }
.apx-btn-outline { border-color: var(--apx-bronze); color: var(--apx-bronze-dark) !important; }
.apx-btn-outline:hover { background: var(--apx-bronze); color: #fff !important; }
.apx-btn-outline-light { border-color: var(--apx-gold); color: #fff !important; }
.apx-btn-outline-light:hover { background: var(--apx-gold); color: var(--apx-deep) !important; }
.apx-link { font-weight: 600; color: var(--apx-bronze-dark) !important; text-decoration: none !important; }
.apx-link:hover span { margin-left: 4px; }
.apx-link span { transition: margin .2s; }

/* Dark sections */
.apx-dark, .apx-dark p, .apx-dark li { color: var(--apx-cream); }
.apx-dark h1, .apx-dark h2, .apx-dark h3, .apx-dark .fl-heading-text { color: #fff !important; }
.apx-dark .apx-eyebrow { color: var(--apx-gold); }
.apx-dark .apx-lead { color: #fff; }
.apx-dark strong { color: #fff; }

/* Hero */
.apx-hero .fl-col-content { max-width: 760px; }
.apx-hero .apx-lead { font-size: 23px; }
.apx-services-line { font-size: 14px; letter-spacing: 0.04em; color: var(--apx-gold) !important; margin-top: 20px !important; }

/* Trust bar */
.apx-trustbar .fl-icon-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; }
.apx-trustbar .fl-icon i, .apx-trustbar .fl-icon i:before { color: var(--apx-cream) !important; font-size: 26px !important; }
.apx-trustbar .fl-icon-text, .apx-trustbar .fl-icon-text p { color: #fff !important; font-weight: 600; font-size: 15px; margin: 0 !important; line-height: 1.3; }

/* Spacing helpers */
@media (min-width: 993px) {
	.apx-pad-left > .fl-col-content { padding-left: 40px; }
	.apx-pad-right > .fl-col-content { padding-right: 40px; }
}
.apx-rounded img { border-radius: 12px; box-shadow: 0 18px 40px rgba(46, 34, 25, .16); }

/* Service cards */
.apx-services .fl-col-group + .fl-col-group { margin-top: 8px; }
.apx-card > .fl-col-content {
	background: #fff; border-radius: 12px; overflow: hidden; margin: 12px;
	box-shadow: 0 6px 24px rgba(46, 34, 25, .08); border: 1px solid var(--apx-line);
	transition: transform .2s, box-shadow .2s; height: calc(100% - 24px);
}
.apx-card > .fl-col-content:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(46, 34, 25, .14); }
.apx-card .fl-module { margin: 0 !important; }
.apx-card .apx-card-img img { width: 100%; border-radius: 0; display: block; }
.apx-card .fl-rich-text { padding: 22px 24px 8px; }
.apx-card-sub { font-weight: 600; color: var(--apx-bronze-dark); font-size: 15px; }
.apx-card .fl-rich-text p { font-size: 15.5px; }
@media (max-width: 992px) { .apx-spacer-col { display: none; } }

/* ApexArmor features */
.apx-apexarmor .fl-col-group:nth-child(2) { margin-top: 40px; }
.apx-feature > .fl-col-content { padding: 24px; margin: 8px; border-top: 3px solid var(--apx-gold); background: rgba(246, 241, 232, .06); border-radius: 0 0 10px 10px; height: calc(100% - 16px); }
.apx-feat-icon .fl-icon-wrap { justify-content: flex-start; }
.apx-feat-icon .fl-icon i, .apx-feat-icon .fl-icon i:before { color: var(--apx-gold) !important; font-size: 30px !important; }
.apx-feature h3 { font-size: 18px; }
.apx-feature p { font-size: 15px; }

/* Warranty */
.apx-badge img { max-width: 380px; width: 100%; margin: 0 auto; display: block; filter: drop-shadow(0 16px 30px rgba(46, 34, 25, .18)); }
.apx-callout { background: var(--apx-cream); border-left: 4px solid var(--apx-bronze); border-radius: 0 8px 8px 0; padding: 18px 22px 4px; margin: 22px 0 6px; }
.apx-callout p { font-size: 15.5px; }

/* Process */
.apx-step { text-align: center; padding: 8px 10px; }
.apx-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%; margin-bottom: 14px;
	background: var(--apx-bronze); color: #fff; font-weight: 700; font-size: 22px;
	box-shadow: 0 0 0 6px rgba(138, 107, 70, .15);
}
.apx-step h3 { font-size: 18px; }
.apx-step p { font-size: 15px; }

/* Service area */
.apx-city { border-left: 3px solid var(--apx-gold); padding: 2px 0 2px 16px; margin: 0 0 16px; }
.apx-city h3 { font-size: 18px; margin-bottom: 4px; }
.apx-city p { margin: 0; font-size: 15.5px; }

/* FAQ accordion */
.apx-accordion .fl-accordion-item { border: 1px solid var(--apx-line) !important; border-radius: 10px; margin-bottom: 12px !important; overflow: hidden; background: #fff; }
.apx-accordion .fl-accordion-button { padding: 18px 22px !important; background: #fff; }
.apx-accordion .fl-accordion-button-label, .apx-accordion .fl-accordion-button-label h3 { font-size: 17px !important; font-weight: 600 !important; color: var(--apx-deep) !important; margin: 0 !important; }
.apx-accordion .fl-accordion-button-icon { color: var(--apx-bronze) !important; }
.apx-accordion .fl-accordion-content { padding: 0 22px 18px !important; }

/* Final CTA */
.apx-contact-card { background: rgba(246, 241, 232, .08); border: 1px solid rgba(198, 166, 115, .4); border-radius: 14px; padding: 30px; }
.apx-contact-card h3 { color: #fff !important; font-size: 22px; }
.apx-phone a { font-size: 28px; font-weight: 700; color: var(--apx-gold) !important; text-decoration: none; }
.apx-small { font-size: 14px; opacity: .85; }
.apx-division { margin-top: 14px !important; font-style: italic; }

/* Header */
/* Fixed height + auto width keeps the logo's proportions (the theme forces height:auto). */
body .fl-page-header-primary .fl-logo-img,
body .fl-page-header .fl-page-header-logo img.fl-logo-img {
	height: 86px !important; width: auto !important; max-width: none !important; max-height: none !important;
}
body .fl-page-header-fixed .fl-logo-img { height: 52px !important; width: auto !important; max-width: none !important; }
@media (max-width: 768px) {
	body .fl-page-header-primary .fl-logo-img { height: 64px !important; }
}
.fl-page-nav .navbar-nav > li > a { font-weight: 500; }

/* Custom header row: logo | menu | phone */
.apx-header .apx-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.apx-header .apx-header-logo { flex: 0 0 auto; width: auto; max-width: none; padding: 0; }
.apx-header .fl-page-header-logo { text-align: left; padding: 0 !important; }
.apx-header img.fl-logo-img {
	height: 84px !important; width: auto !important; max-width: none !important; max-height: none !important;
	aspect-ratio: auto; object-fit: contain;
}
.apx-header .apx-header-nav { flex: 1 1 auto; width: auto; max-width: none; padding: 0; }
.apx-header .fl-page-nav-wrap { padding: 0; }
.apx-header .fl-page-nav { justify-content: center; }
.apx-header .navbar-nav { float: none; margin: 0 auto; justify-content: center; }
.apx-header .navbar-nav > li > a { padding: 10px 14px; font-size: 16px; }
.apx-header-phone { flex: 0 0 auto; }
.apx-header-phone a { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.apx-hp-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%; background: var(--apx-bronze); color: #fff;
	transition: background-color .2s;
}
.apx-header-phone a:hover .apx-hp-icon { background: var(--apx-bronze-dark); }
.apx-hp-text { display: flex; flex-direction: column; line-height: 1.15; }
.apx-hp-text small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--apx-bronze); }
.apx-hp-text strong { font-size: 28px; font-weight: 700; color: var(--apx-deep); letter-spacing: -0.01em; }

@media (max-width: 1100px) {
	.apx-hp-text strong { font-size: 22px; }
	.apx-header .navbar-nav > li > a { padding: 10px 9px; font-size: 15px; }
}
@media (max-width: 767px) {
	.apx-header .apx-header-row { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
	.apx-header .apx-header-logo { order: 1; }
	.apx-header-phone { order: 2; margin-left: auto; }
	.apx-header .apx-header-nav { order: 3; flex-basis: 100%; }
	.apx-header img.fl-logo-img { height: 58px !important; }
	.apx-hp-text small { display: none; }
	.apx-hp-text strong { font-size: 18px; }
	.apx-hp-icon { width: 42px; height: 42px; }
}

/* Footer */
.fl-page-footer { padding: 36px 0; }
.apx-footer-logo { max-width: 260px; height: auto; }
.apx-footer-name { font-weight: 600; color: #fff; font-size: 17px; margin-bottom: 6px; }
.fl-page-footer p { margin-bottom: 8px; }
.apx-copy { font-size: 13px; opacity: .7; margin-top: 14px; }

@media (max-width: 768px) {
	.apx-btns { flex-direction: column; align-items: stretch; }
	.apx-btn { width: 100%; }
	.apx-lead, .apx-hero .apx-lead { font-size: 19px; }
	.apx-card > .fl-col-content { margin: 10px 0; }
	.apx-step-col { margin-bottom: 8px; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.apx-hero-inner .fl-col-content { max-width: 820px; }
.apx-hero-inner h1 { font-size: clamp(34px, 4.4vw, 52px); }
.apx-hero-note { font-size: 13px; opacity: .8; margin-top: 18px !important; font-style: italic; }
.apx-narrow { max-width: 760px; margin: 0 auto; }
.apx-text-solo .fl-heading, .apx-text-solo h2 { text-align: left; }
.apx-text h3, .apx-solo h3 { font-size: 20px; margin-top: 24px; }
.apx-mini { font-size: 17px; font-weight: 600; color: var(--apx-deep); margin: 20px 0 6px; }
.apx-note { font-size: 14px; font-style: italic; color: #6B5A4A; }
.apx-dark .apx-note { color: var(--apx-cream); opacity: .8; }

/* Lists */
.apx-list { list-style: none; padding: 0; margin: 4px 0 20px; }
.apx-list li { position: relative; padding: 4px 0 4px 32px; }
.apx-list li::before {
	content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--apx-bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.apx-olist { padding-left: 22px; margin: 4px 0 20px; }
.apx-olist li { padding: 3px 0 3px 4px; }
.apx-olist li::marker { color: var(--apx-bronze); font-weight: 700; }

/* Tables */
.apx-table-wrap { overflow-x: auto; margin: 22px 0; border-radius: 12px; border: 1px solid var(--apx-line); background: #fff; }
.apx-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.apx-table th { background: var(--apx-deep); color: #fff; text-align: left; padding: 14px 18px; font-weight: 600; }
.apx-table th:last-child { background: var(--apx-bronze); }
.apx-table td { padding: 14px 18px; border-top: 1px solid var(--apx-line); vertical-align: top; }
.apx-table td:first-child { font-weight: 600; color: var(--apx-deep); width: 22%; }
.apx-table tr:nth-child(even) td { background: #FBF8F3; }
@media (max-width: 700px) {
	.apx-table thead { display: none; }
	.apx-table tr { display: block; border-top: 1px solid var(--apx-line); padding: 8px 0; }
	.apx-table td { display: block; border: 0; padding: 6px 16px; width: auto !important; }
	.apx-table td:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--apx-bronze-dark); }
}

/* Text-only cards */
.apx-cards .fl-col-group + .fl-col-group { margin-top: 4px; }
.apx-card-text > .fl-col-content { padding: 26px 26px 14px; border-top: 3px solid var(--apx-bronze); border-radius: 4px 4px 12px 12px; }
.apx-card-text h3 { font-size: 19px; }
.apx-card-text p, .apx-card-text li { font-size: 15.5px; }
.apx-card-text .fl-module { margin: 0 !important; }

/* Steps that carry longer copy */
.apx-step { text-align: left; }
.apx-step .apx-step-num { margin-bottom: 12px; }
.apx-process .apx-step p { font-size: 15px; }
.apx-process .fl-col-group + .fl-col-group { margin-top: 18px; }

/* Media column, map, gallery */
.apx-media-col .fl-module-map iframe, .apx-map iframe { border-radius: 12px; box-shadow: 0 18px 40px rgba(46, 34, 25, .14); }
.apx-gallery .apx-gal img { border-radius: 10px; }
.apx-gallery .fl-col-group + .fl-col-group { margin-top: 10px; }

/* FAQ page: tighter stacking of consecutive FAQ groups */
.apx-faq + .apx-faq { padding-top: 40px !important; }

/* Contact form */
.apx-form-col > .fl-col-content { background: #fff; border: 1px solid var(--apx-line); border-radius: 14px; padding: 30px; box-shadow: 0 14px 36px rgba(46, 34, 25, .10); }
.apx-form-title { font-size: 24px !important; margin-bottom: 6px !important; }
.apx-small-dark { font-size: 14.5px; color: #6B5A4A; }
.apx-form input[type=text], .apx-form input[type=email], .apx-form input[type=tel], .apx-form textarea {
	width: 100%; border: 1px solid #D9CBB6; border-radius: 8px; padding: 13px 14px; font-size: 16px; background: #FDFBF8; font-family: inherit;
}
.apx-form textarea { min-height: 160px; }
.apx-form input:focus, .apx-form textarea:focus { outline: 2px solid var(--apx-gold); border-color: var(--apx-bronze); }
.apx-form .fl-button, .apx-form a.fl-button, .apx-form button {
	background: var(--apx-bronze) !important; border: 0 !important; border-radius: 6px !important; color: #fff !important;
	padding: 15px 28px !important; font-weight: 600 !important; font-size: 16px !important; width: 100%;
}
.apx-form .fl-button:hover { background: var(--apx-bronze-dark) !important; }

/* Dropdown menus */
.apx-header .navbar-nav .sub-menu, .apx-header .fl-page-nav ul.sub-menu {
	background: #fff; border: 1px solid var(--apx-line); border-radius: 10px; padding: 8px 0;
	box-shadow: 0 16px 34px rgba(46, 34, 25, .14); min-width: 260px;
}
.apx-header .fl-page-nav ul.sub-menu li a { padding: 10px 18px; font-size: 15px; color: var(--apx-brown); }
.apx-header .fl-page-nav ul.sub-menu li a:hover { background: var(--apx-cream); color: var(--apx-bronze-dark); }

/* Footer quick links */
.apx-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(198, 166, 115, .3); }
.apx-footer-links a { font-size: 14px; text-decoration: none; }

/* Dark rows: inline headings & links */
.apx-dark .apx-mini { color: #fff; }
.apx-dark .fl-rich-text a:not(.apx-btn) { color: var(--apx-gold); }
.apx-media-col .apx-badge img { max-width: 340px; }

/* Header: full-width row so logo sits far left, phone far right, menu stays on one line */
.apx-header .fl-page-header-container {
	max-width: 1680px !important; width: 100% !important;
	padding-left: max(24px, 2.5vw) !important; padding-right: max(24px, 2.5vw) !important;
}
.apx-header .apx-header-row { flex-wrap: nowrap; gap: 32px; }
.apx-header .apx-header-nav { min-width: 0; }
@media (min-width: 768px) {
	.apx-header .fl-page-nav-collapse { display: flex !important; justify-content: center; }
	.apx-header .navbar-nav { display: flex !important; flex-wrap: nowrap !important; }
	.apx-header .navbar-nav > li { float: none; white-space: nowrap; }
}
/* Tighten as the window narrows so everything still fits on one row */
@media (max-width: 1350px) {
	.apx-header .navbar-nav > li > a { padding: 10px 10px; font-size: 15.5px; }
	.apx-hp-text strong { font-size: 24px; }
	.apx-header img.fl-logo-img { height: 72px !important; }
}
@media (max-width: 1120px) and (min-width: 768px) {
	.apx-hp-text { display: none; }            /* phone shows as the round call button only */
	.apx-header .navbar-nav > li > a { padding: 10px 8px; font-size: 15px; }
}

/* Scrolling header: compact version with phone */
.apx-header.apx-header-fixed { box-shadow: 0 4px 18px rgba(46, 34, 25, .12); }
.apx-header.apx-header-fixed .apx-header-row { padding: 6px 0; }
.apx-header.apx-header-fixed img.fl-logo-img { height: 52px !important; }
.apx-header.apx-header-fixed .apx-hp-icon { width: 40px; height: 40px; }
.apx-header.apx-header-fixed .apx-hp-text strong { font-size: 22px; }
.apx-header.apx-header-fixed .navbar-nav > li > a { padding-top: 8px; padding-bottom: 8px; }
