/*
Theme Name: FamTech
Theme URI: https://famtech.net
Description: FamTech-branded child theme for Twenty Twenty-Five. Applies the FamTech color palette, typography, and button styles.
Author: FamTech
Author URI: https://famtech.net
Template: twentytwentyfive
Version: 1.6.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: famtech
*/

/* -----------------------------------------------------------
   FamTech — supplementary CSS on top of theme.json tokens
   ----------------------------------------------------------- */

/* Smooth type rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Eyebrow / small-caps tag used above headings */
.famtech-eyebrow {
  display: inline-block;
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}

/* Primary teal button — inherits Gutenberg .wp-block-button__link */
.wp-block-button.is-style-fill .wp-block-button__link {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -6px rgba(26, 145, 169, 0.45);
}

/* Yellow CTA button variant */
.wp-block-button.is-style-cta-gold .wp-block-button__link {
  background-color: var(--wp--preset--color--cta);
  color: #2b1e00;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  border: 2px solid var(--wp--preset--color--cta);
}
.wp-block-button.is-style-cta-gold .wp-block-button__link:hover {
  background-color: #ffcd3a;
  border-color: #ffcd3a;
}

/* Ghost / outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  border-width: 2px;
}

/* Card treatment — apply to Group blocks with class .famtech-card */
.famtech-card {
  background: #ffffff;
  border: 1px solid #e5eaed;
  border-radius: 14px;
  padding: 1.75rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  height: 100%;
}
.famtech-card:hover {
  transform: translateY(-2px);
  border-color: #cfd9df;
  box-shadow: 0 12px 28px -18px rgba(67, 82, 91, 0.35);
}
.famtech-card h3 {
  margin-top: 0.5rem;
  color: var(--wp--preset--color--contrast);
}

/* Hero gradient background helper — apply to a cover/group block */
.famtech-hero {
  background: linear-gradient(180deg, #eef2f3 0%, #d1dee6 100%);
}

/* -------------------------------------------------------------
 * Hide WordPress default page-title block on all pages.
 * Each page's hero already carries a labeled eyebrow + headline,
 * so the redundant top-of-page "About", "Services", etc. adds
 * visual noise without informational value.
 * ----------------------------------------------------------- */
.wp-block-post-title,
main > .wp-block-post-title,
.entry-content > .wp-block-post-title,
.wp-site-blocks .wp-block-post-title {
  display: none;
}

/* -------------------------------------------------------------
 * Give hero photos more visual weight on desktop. Each hero image
 * is inside a two-column layout; bump its container to consume
 * more of the row so photography carries the section.
 * ----------------------------------------------------------- */
@media (min-width: 900px) {
  main .wp-block-columns:has(> .wp-block-column img[src*="hero-"]) {
    align-items: center;
  }
  main .wp-block-column:has(> figure > img[src*="hero-"]),
  main .wp-block-column:has(> figure.wp-block-image img[src*="hero-"]) {
    flex-basis: 55% !important;
  }
  main img[src*="hero-"] {
    width: 100%;
    height: auto;
    max-width: 720px;
  }
}

/* Headings — a touch tighter and warmer */
h1, h2, h3, h4 {
  color: var(--wp--preset--color--contrast);
  letter-spacing: -0.01em;
}

h1 {
  line-height: 1.05;
}

/* Emphasized italic phrase in headings (matches preview site) */
h1 em, h2 em {
  font-style: italic;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 400;
  color: var(--wp--preset--color--primary);
}

/* Body links */
.entry-content a:not(.wp-block-button__link),
.wp-block-post-content a:not(.wp-block-button__link) {
  color: var(--wp--preset--color--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Checklist bullets */
ul.famtech-checklist {
  list-style: none;
  padding-left: 0;
}
ul.famtech-checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}
ul.famtech-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  background-color: var(--wp--preset--color--accent);
  border-radius: 2px;
}

/* Site header polish */
.wp-block-site-title a {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
}

/* Navigation active state */
.wp-block-navigation .wp-block-navigation-item.current-menu-item > a {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* Footer disclaimer callout */
.famtech-disclaimer {
  background: #f7f8f9;
  border-left: 4px solid var(--wp--preset--color--accent);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--wp--preset--color--contrast);
}

/* Utility: constrain long-form content */
.famtech-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */

.famtech-footer {
  color: var(--wp--preset--color--contrast);
}

.famtech-footer .wp-block-site-title a {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
}

/* Compact bulletless link lists in the footer */
.famtech-footer .famtech-footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0.25rem 0 0 0;
}
.famtech-footer .famtech-footer-links li {
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}
.famtech-footer .famtech-footer-links a {
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  transition: color 120ms ease;
}
.famtech-footer .famtech-footer-links a:hover {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bottom copyright row */
.famtech-footer > .wp-block-group {
  color: var(--wp--preset--color--muted);
}
.famtech-footer > .wp-block-group p {
  margin: 0;
}

/* Footer eyebrow tags a touch smaller */
.famtech-footer .is-style-famtech-eyebrow {
  font-size: 0.75rem;
  color: var(--wp--preset--color--muted);
  margin-bottom: 0.75rem;
}

/* Mobile: stack columns cleanly */
@media (max-width: 780px) {
  .famtech-footer .wp-block-columns {
    gap: 2rem !important;
  }
  .famtech-footer .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* -----------------------------------------------------------
   Contact form (Formspree)
   ----------------------------------------------------------- */

.famtech-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-width: 640px;
  margin: 0;
}

.famtech-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

@media (max-width: 600px) {
  .famtech-form-row {
    grid-template-columns: 1fr;
  }
}

.famtech-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.famtech-form-label {
  font-family: var(--wp--preset--font-family--body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--foreground);
}

.famtech-form input[type="text"],
.famtech-form input[type="email"],
.famtech-form select,
.famtech-form textarea {
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--wp--preset--color--foreground);
  background: #ffffff;
  border: 1px solid rgba(67, 82, 91, 0.22);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.famtech-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.famtech-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%2343525b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
}

.famtech-form input:focus,
.famtech-form select:focus,
.famtech-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--primary);
  box-shadow: 0 0 0 3px rgba(26, 145, 169, 0.18);
  background: #ffffff;
}

.famtech-form input::placeholder,
.famtech-form textarea::placeholder {
  color: rgba(67, 82, 91, 0.5);
}

.famtech-form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.famtech-form-submit {
  align-self: flex-start;
  font-family: var(--wp--preset--font-family--body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wp--preset--color--foreground);
  background: var(--wp--preset--color--cta);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.famtech-form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -8px rgba(255, 194, 12, 0.65);
}

.famtech-form-submit:focus-visible {
  outline: 3px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

.famtech-form-note {
  font-size: 0.8125rem;
  color: var(--wp--preset--color--muted);
  margin: 0.25rem 0 0;
  line-height: 1.55;
}

.famtech-form-note a {
  color: var(--wp--preset--color--primary);
}

.famtech-form-success {
  background: rgba(26, 145, 169, 0.08);
  border: 1px solid rgba(26, 145, 169, 0.28);
  border-left: 4px solid var(--wp--preset--color--primary);
  color: var(--wp--preset--color--foreground);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
}

.famtech-form-success strong {
  color: var(--wp--preset--color--primary);
}

/* Contact channels (right column on Contact page) */
.famtech-contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.famtech-contact-channel {
  background: #ffffff;
  border: 1px solid rgba(67, 82, 91, 0.14);
  border-left: 4px solid var(--wp--preset--color--primary);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
}

.famtech-contact-channel h3 {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--wp--preset--color--foreground);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.famtech-contact-channel p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.famtech-contact-channel a {
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-decoration: none;
}

.famtech-contact-channel a:hover {
  text-decoration: underline;
}

.famtech-contact-channel-note {
  color: var(--wp--preset--color--muted);
  font-size: 0.85rem !important;
}

/* -----------------------------------------------------------
   Site logo lockup (header)
   Inline SVG mark + serif wordmark, injected into the Site Title
   block by the theme's render_block_core/site-title filter.
   ----------------------------------------------------------- */

.wp-block-site-title a {
  text-decoration: none;
}

.famtech-inline-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}

.famtech-inline-mark {
  flex: 0 0 auto;
  display: block;
  width: 46px;
  height: 46px;
}

.famtech-inline-wordmark {
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--wp--preset--color--foreground);
  letter-spacing: -0.01em;
  line-height: 1;
}

