/*
Theme Name: Francis and Francis
Theme URI: https://francisandfrancis.wales
Author: Francis and Francis
Description: Bespoke personal tailoring theme for Francis and Francis, South Wales.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: francis-francis
*/

/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

:root {
  --ff-dark: #333333;
  --ff-darker: #181818;
  --ff-teal: #7EBEC5;
  --ff-teal-dark: #5a9ea6;
  --ff-green: #7c9f7a;
  --ff-grey: #666666;
  --ff-light-grey: #f5f5f5;
  --ff-white: #ffffff;
  --ff-border: #e2e2e2;
  --ff-container: 1080px;
  --ff-font: 'Open Sans', Arial, sans-serif;
}

body {
  font-family: var(--ff-font);
  font-size: 14px;
  color: #666;
  line-height: 1.7em;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  background-color: #181818;
}
h1, h2, h3, h4, h5, h6 {
  color: #333;
  font-weight: 500;
  line-height: 1em;
  padding-bottom: 10px;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
a {
  color: #7EBEC5;
  text-decoration: none;
}
p {
  padding-bottom: 1em;
  line-height: 1.7em;
}
strong {
  font-weight: bold;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; position: relative; }
.ff-page-content { }
.ff-page-content .wp-block-cover { min-height: 400px; }
.ff-page-content .wp-block-columns { gap: 40px; }
.ff-page-content img { max-width: 100%; height: auto; }
.ff-page-content ul { list-style: disc; padding-left: 1.5em; margin: 0 0 1em; }
.ff-page-content ol { list-style: decimal; padding-left: 1.5em; margin: 0 0 1em; }
.ff-page-content li { padding-bottom: 0.4em; line-height: 1.7; }
.ff-page-content .ff-checklist,
.ff-page-content .ff-pricing-features { list-style: none; padding-left: 0; }
img { max-width: 100%; height: auto; }

#ff-site-shell {
  width: min(calc(100% - 100px), 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 225px 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "sidebar header"
    "sidebar content"
    "sidebar footer";
}
#top-header {
  grid-area: header;
  background: #7c9f7a;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  padding: 4px 0;
}
#top-header .container {
  background: transparent;
  margin-left: 0;
  max-width: 1080px;
  padding: 0 20px;
}
.top-header-inner,
#top-header .container {
  min-height: 25px;
}
.top-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-contact a {
  color: inherit;
  margin-right: 15px;
}
.top-contact a.tel:before {
  content: "\f095";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 5px;
}
.top-contact a.email:before {
  content: "\f0e0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 5px;
}
.top-social a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-left: 12px;
}
.top-social a:hover {
  color: white;
}

#page-wrapper {
  display: contents;
}
#ff-sidebar {
  grid-area: sidebar;
  background-color: rgba(20,20,20,0.85);
  padding: 40px 0 0;
  z-index: 100;
}
#page-container {
  grid-area: content;
  min-width: 0;
  background-color: #fff;
}
#logo {
  display: block;
  text-align: center;
  width: 145px;
  margin: 0 auto;
  padding: 0 0 24px;
}
#logo img {
  max-width: 145px;
  height: auto;
}
#logo .site-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

#ff-sidebar #top-menu-nav {
  width: 145px;
  margin: 0 auto;
  padding-top: 10px;
  text-align: center;
}
#ff-sidebar #top-menu-nav ul {
  list-style: none;
  display: block;
  margin: 0;
  padding: 0;
}
#ff-sidebar #top-menu-nav li {
  display: block;
  padding: 0;
}
#ff-sidebar #top-menu-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  text-decoration: none;
  display: block;
  padding: 0 40px 19px 0;
  margin: 0 -40px 0 0;
  line-height: 23px;
  font-weight: 500;
  text-align: center;
  transition: color 0.2s;
}
#ff-sidebar #top-menu-nav a:hover {
  color: #fff;
}
#ff-sidebar .current-menu-item > a {
  color: #fff;
}
#ff-sidebar #top-menu-nav ul ul {
  padding-left: 15px;
}
#ff-sidebar #top-menu-nav ul ul a {
  font-size: 12px;
  padding: 10px 0;
  color: rgba(255,255,255,0.7);
}
#ff-sidebar #top-menu-nav ul ul a:hover {
  color: #fff;
}
.ff-sidebar-search {
  display: block;
  width: 18px;
  height: auto;
  margin: 12px auto 0;
  color: rgba(255,255,255,0.75);
  font-size: 18px;
  text-align: center;
}
.ff-sidebar-search:hover {
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  margin-bottom: 5px;
  transition: all 0.3s;
}

.ff-section { padding: 60px 0; }

.ff-hero,
.home .ff-page-content > .stk-block-columns:first-child {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #181818;
  color: #fff;
  position: relative;
  min-height: 500px;
}
.ff-hero .ff-hero-banner {
  background: rgba(0,0,0,0.75);
  padding: 20px 0;
  position: relative;
  z-index: 1;
}
.ff-hero h1, .ff-hero h2, .ff-hero h3 { color: #fff; margin: 0; padding-bottom: 0; }
.ff-hero p { margin: 0; color: rgba(255,255,255,0.85); }

.home .ff-page-content > .stk-block-columns:first-child .stk-block-content {
  min-height: 500px;
}

.home .ff-page-content > .stk-block-columns:first-child .wp-block-group {
  display: none;
}

.home .ff-page-content > .stk-block-columns:nth-child(2) {
  background: #181818;
  color: #fff;
  padding: 42px 0 20px;
}

.home .ff-page-content > .stk-block-columns:nth-child(2) .stk-row {
  max-width: 1080px;
}

.home .ff-page-content > .stk-block-columns:nth-child(2) h1,
.home .ff-page-content > .stk-block-columns:nth-child(2) h2,
.home .ff-page-content > .stk-block-columns:nth-child(2) h3,
.home .ff-page-content > .stk-block-columns:nth-child(2) p {
  color: #fff !important;
}

.home .ff-page-content > .stk-block-columns:nth-child(2) h1,
.home .ff-page-content > .stk-block-columns:nth-child(2) h2 {
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  font-weight: 400;
  text-shadow: #000 1px 1px 4px;
  margin: 0 0 34px;
}

.home .ff-page-content > .stk-block-columns:nth-child(2) .stk-block-text__text,
.home .ff-page-content > .stk-block-columns:nth-child(2) p {
  text-align: center;
}

.home .ff-page-content > .stk-block-columns:nth-child(2) .stk-column-wrapper {
  background: transparent !important;
}

.ff-page-content { }
.ff-page-content .wp-block-cover { min-height: 400px; }
.ff-page-content .wp-block-columns { gap: 40px; }
.ff-page-content img { max-width: 100%; height: auto; }
.ff-section-dark { background: #333; color: #fff; }
.ff-section-dark h1, .ff-section-dark h2, .ff-section-dark h3 { color: #fff; }
.ff-section-darker { background: #181818; color: #fff; }
.ff-section-darker h1, .ff-section-darker h2, .ff-section-darker h3 { color: #fff; }
.ff-section-darker p { color: rgba(255,255,255,0.8); }
.ff-section-darker a { color: #fff; }
.ff-section-darker .ff-blurb h3 a { color: #fff; }
.ff-section-darker .ff-blurb p { color: rgba(255,255,255,0.75); }
.ff-section-light { background: #f5f5f5; }
.ff-section-teal { background: #7EBEC5; color: #fff; }

.ff-btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid currentColor;
  border-radius: 3px;
  padding: 8px 24px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  background: transparent;
}
.ff-btn-light { color: #fff; border-color: #fff; }
.ff-btn-light:hover { background: rgba(255,255,255,0.2); color: #fff; }
.ff-btn-dark { color: #333; border-color: #333; }
.ff-btn-dark:hover { background: rgba(0,0,0,0.05); color: #333; }
.ff-btn-teal { color: #7EBEC5; border-color: #7EBEC5; }
.ff-btn-teal:hover { background: #7EBEC5; color: #fff; }

.ff-row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.ff-col { padding: 0 15px; box-sizing: border-box; }
.ff-col-1-4 { width: 25%; }
.ff-col-1-3 { width: 33.333%; }
.ff-col-1-2 { width: 50%; }
.ff-col-2-3 { width: 66.666%; }
.ff-col-full { width: 100%; }

.ff-blurb { text-align: center; margin-bottom: 30px; }
.ff-blurb-image { margin-bottom: 20px; }
.ff-blurb-image img { border-radius: 50%; width: 150px; height: 150px; object-fit: cover; }
.ff-blurb h3 { font-size: 18px; padding-bottom: 8px; }
.ff-blurb p { font-size: 14px; color: #666; }
.ff-blurb a { color: #7EBEC5; }

.ff-pricing-grid { display: flex; gap: 0; }
.ff-pricing-table { flex: 1; border: 1px solid #a1a8aa; background: #fcfcfc; padding-bottom: 40px; text-align: center; box-sizing: border-box; margin-right: -1px; }
.ff-pricing-heading { background: #a1a8aa; padding: 15px 0; margin-bottom: 20px; }
.ff-pricing-heading h2 { color: #fff; font-size: 22px; padding-bottom: 0; }
.ff-pricing-amount { color: #999; font-size: 16px; padding: 20px 0; border-bottom: 1px solid #ccc; }
.ff-pricing-amount .from { display: block; font-size: 14px; }
.ff-pricing-amount .price { font-size: 72px; line-height: 1; font-weight: 300; color: #333; }
.ff-pricing-features { padding: 25px 30px; text-align: left; }
.ff-pricing-features li { padding: 0 0 12px 20px; position: relative; line-height: 1.6; }
.ff-pricing-features li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border: 2px solid #7EBEC5; border-radius: 2px; }

.ff-testimonial { background: #f5f5f5; padding: 30px; margin-bottom: 30px; position: relative; }
.ff-testimonial::before { content: '\201C'; font-size: 60px; color: #7EBEC5; line-height: 1; display: block; margin-bottom: 10px; font-family: Georgia, serif; }
.ff-testimonial-text { font-style: italic; margin-bottom: 15px; }
.ff-testimonial-author { font-weight: 700; color: #333; }

.ff-contact-grid { display: flex; gap: 40px; }
.ff-contact-form { flex: 2; }
.ff-contact-sidebar { flex: 1; }
.ff-contact-sidebar h3 { color: #333; border-bottom: 2px solid #7EBEC5; padding-bottom: 10px; margin-bottom: 15px; }

#main-footer { grid-area: footer; background: #333; color: rgba(255,255,255,0.7); padding: 20px 0; font-size: 12px; }
#main-footer .container { background: transparent; max-width: 1080px; padding: 0 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
#footer-nav ul { display: flex; flex-wrap: wrap; gap: 15px; list-style: none; margin: 0; padding: 0; }
#footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
#footer-nav a:hover { color: #fff; }
.footer-social a { color: rgba(255,255,255,0.7); font-size: 16px; margin-left: 10px; }
.footer-social a:hover { color: #fff; }
.footer-credit { color: rgba(255,255,255,0.5); }
.footer-credit a { color: rgba(255,255,255,0.5); }

.wp-block-gallery { --wp--style--unstable-gallery-gap: 16px; }
.wp-block-gallery .wp-block-image img { border-radius: 0; }

.wp-block-details { border-bottom: 1px solid #e2e2e2; padding: 15px 0; }
.wp-block-details summary { font-weight: 600; color: #333; cursor: pointer; font-size: 16px; padding: 5px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.wp-block-details summary::after { content: '+'; font-size: 20px; color: #7EBEC5; transition: transform 0.2s; }
.wp-block-details[open] summary::after { content: '\2212'; }
.wp-block-details p { color: #666; padding-top: 10px; }

@media (max-width: 980px) {
  .ff-col-1-4 { width: 50%; }
  .ff-col-1-3 { width: 50%; }
  .ff-col-2-3 { width: 100%; }
  .ff-pricing-grid { flex-direction: column; }
  .ff-contact-grid { flex-direction: column; }
}

@media (max-width: 768px) {
  .ff-col-1-4, .ff-col-1-3, .ff-col-1-2, .ff-col-2-3 { width: 100%; }
  #ff-site-shell { width: 100%; display: block; }
  #top-header { display: none; }
  #main-footer { background: #333; padding: 20px 0; }
  #main-footer .container { background: transparent; padding: 0 20px; }
  #page-wrapper { display: block; }
  #ff-sidebar { width: 100%; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; box-sizing: border-box; position: relative; top: auto; left: auto; bottom: auto; overflow-y: visible; }
  #page-container { margin-left: 0; }
  #logo { width: auto; margin: 0; padding-bottom: 0; }
  #logo img { max-height: 50px; }
  #top-menu-nav { display: none; width: 100%; padding-top: 20px; }
  #ff-sidebar.nav-open #top-menu-nav { display: block; }
  #ff-sidebar #top-menu-nav,
  #ff-sidebar #top-menu-nav ul,
  #ff-sidebar #top-menu-nav a { width: 100%; margin-right: 0; padding-right: 0; }
  .ff-sidebar-search { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu-toggle span { background: #fff; }
  .ff-section { padding: 40px 0; }
  .ff-pricing-grid { flex-direction: column; }
  .ff-contact-grid { flex-direction: column; }
  .ff-row { flex-direction: column; }
  .ff-col { width: 100% !important; }
}
