/*
Theme Name: La Fontana
Theme URI: https://lafontana.cl
Description: Custom WordPress theme built with ACF Gutenberg Blocks for La Fontana Pastas.
Author: Antigravity
Author URI: https://google.com
Version: 1.0.0
Text Domain: la-fontana
*/

/* ---------------------------------------------------------
   Design System & Custom Properties
   --------------------------------------------------------- */
:root {
  --color-bg-beige: #f9f5ee;
  --color-green: #039151;
  --color-green-dark: #218e52;
  --color-yellow: #f2a818;
  --color-yellow-light: #f5b041;
  --color-text-dark: #2d312e;
  --color-text-light: #ffffff;
  --color-white: #ffffff;
  --font-heading: 'Instrument Serif', 'Merriweather', 'Lora', serif;
  --font-body: 'Lato', 'Inter', sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

/* ---------------------------------------------------------
   Reset & Base Styles
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-beige);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Wheat icon badge style used in block headers */
.block-header {
  text-align: center;
  margin-bottom: 40px;
}

.block-header h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-text-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.block-header h2::before {
  content: '';
  background-image: url('/wp-content/uploads/2026/08/icon-1.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 25px;
  height: 25px;
  font-size: 0px;
}

/* Button style */
.btn-primary {
  display: inline-block;
  background-color: var(--color-green);
  color: var(--color-white);
  padding: 12px 35px;
  border-radius: 0px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-green-dark);
  transform: translateY(-2px);
  color: var(--color-white);
}

/* ---------------------------------------------------------
   WordPress Gutenberg Core Alignments
   --------------------------------------------------------- */
.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ---------------------------------------------------------
   Helper Utilities
   --------------------------------------------------------- */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* ---------------------------------------------------------
   Header Styles
   --------------------------------------------------------- */
.site-header {
  background-color: var(--color-bg-beige);
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-socials a {
  color: var(--color-green);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.header-socials a:hover {
  color: var(--color-green-dark);
  transform: scale(1.1);
}

.header-logo img {
  max-height: 55px;
  width: auto;
}

.header-cta .btn-primary {
  padding: 10px 22px;
}

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .header-socials {
    order: 2;
  }

  .header-logo {
    order: 1;
  }

  .header-cta {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .header-cta .btn-primary {
    width: 100%;
  }
}

/* ---------------------------------------------------------
   Footer Styles
   --------------------------------------------------------- */
.site-footer {
  background-color: var(--color-green-dark);
  color: var(--color-text-light);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 45%;
  height: 300px;
  background-image: url(/wp-content/uploads/2026/08/BG-trigo.avif);
  background-size: cover;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

.site-footer p {
  color: white;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-logo {
  margin: 0 auto;
  transform: translateX(25px);
}

.footer-logo img {
  max-height: 70px;
  width: auto;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  color: var(--color-text-light);
  font-size: 1.3rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--color-yellow);
  transform: translateY(-3px);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 30px;
    padding-bottom: 30px;
  }

  .footer-logo {
    transform: none;
  }
}