/*
Theme Name: Ian Difford Sunflower
Theme URI: https://iandifford.com
Author: Ian Difford
Author URI: https://iandifford.com
Description: A quirky, fun, sunflower-inspired personal portfolio theme for Ian Difford. Bright yellows, warm oranges, playful design for campervan adventures, cycling, photography and food reviews on the move.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ian-difford-sunflower
Tags: portfolio, personal, quirky, yellow, sunflower, photography, blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =====================================================
   IAN DIFFORD SUNFLOWER THEME
   Quirky • Fun • Sunny • Road-trip ready
   ===================================================== */

:root {
  --sunflower-yellow: #FFC107;
  --warm-orange: #FF8F00;
  --leaf-green: #2E7D32;
  --cream: #FFF8E1;
  --deep-brown: #3E2723;
  --off-white: #FFFDE7;
  --soft-yellow: #FFECB3;
  --dark-text: #3E2723;
  --light-text: #5D4037;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(62, 39, 35, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--cream);
  color: var(--dark-text);
  line-height: 1.7;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

a {
  color: var(--leaf-green);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

a:hover {
  color: var(--warm-orange);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--deep-brown);
  margin-bottom: 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }

p {
  margin-bottom: 1.2em;
}

/* Layout */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.site-header {
  background: linear-gradient(135deg, var(--sunflower-yellow) 0%, #FFD54F 100%);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.site-branding a {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--deep-brown);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-branding a:hover {
  color: var(--deep-brown);
  opacity: 0.9;
}

.sunflower-icon {
  font-size: 1.7rem;
  line-height: 1;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
}

.main-navigation a {
  color: var(--deep-brown);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  background: rgba(62, 39, 35, 0.12);
  color: var(--deep-brown);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: var(--deep-brown);
  color: var(--sunflower-yellow);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(160deg, #FFECB3 0%, #FFF8E1 60%, #FFE082 100%);
  padding: 70px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "🌻";
  position: absolute;
  font-size: 8rem;
  opacity: 0.12;
  top: 10%;
  left: 5%;
  transform: rotate(-15deg);
}

.hero::after {
  content: "🌻";
  position: absolute;
  font-size: 6rem;
  opacity: 0.1;
  bottom: 5%;
  right: 8%;
  transform: rotate(20deg);
}

.hero h1 {
  margin-bottom: 0.3em;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--light-text);
  max-width: 620px;
  margin: 0 auto 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--deep-brown);
  color: var(--sunflower-yellow);
  box-shadow: 0 4px 14px rgba(62, 39, 35, 0.25);
}

.btn-primary:hover {
  background: #4E342E;
  color: var(--sunflower-yellow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--deep-brown);
  border: 2px solid var(--deep-brown);
}

.btn-secondary:hover {
  background: var(--sunflower-yellow);
  color: var(--deep-brown);
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--warm-orange);
  color: white;
}

.btn-orange:hover {
  background: #E65100;
  color: white;
  transform: translateY(-2px);
}

/* ========== CARDS & SECTIONS ========== */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--sunflower-yellow);
  margin: 12px auto 0;
  border-radius: 2px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(62, 39, 35, 0.18);
}

.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--soft-yellow), var(--sunflower-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 0.4em;
}

.card-body p {
  color: var(--light-text);
  font-size: 0.98rem;
  margin-bottom: 1em;
}

/* Content area */
.site-content {
  flex: 1;
  padding: 40px 0 60px;
}

.content-area {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.page-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--sunflower-yellow);
}

.page-header h1 {
  margin-bottom: 0.2em;
}

.page-header .subtitle {
  color: var(--light-text);
  font-size: 1.1rem;
}

/* Gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.3s;
}

.photo-grid a:hover img {
  transform: scale(1.03);
}

/* Scoff Watch specific */
.review-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.review-card .review-image {
  flex: 0 0 260px;
  background: var(--soft-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.review-card .review-body {
  padding: 28px 28px 28px 0;
}

.rating {
  color: var(--sunflower-yellow);
  font-size: 1.3rem;
  letter-spacing: 2px;
}

/* Contact form */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--deep-brown);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--off-white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sunflower-yellow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Message Board note */
.forum-note {
  background: linear-gradient(135deg, var(--soft-yellow), #FFE082);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 30px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--deep-brown);
  color: var(--off-white);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sunflower-yellow);
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--off-white);
  margin-right: 18px;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--sunflower-yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 253, 231, 0.7);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    width: 100%;
    margin-top: 12px;
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .content-area {
    padding: 24px;
  }

  .review-card {
    flex-direction: column;
  }

  .review-card .review-image {
    flex: none;
    height: 180px;
  }

  .review-card .review-body {
    padding: 20px;
  }
}

/* WordPress specific */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.9rem; color: var(--light-text); margin-top: 6px; }

/* Entry content */
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol {
  margin-bottom: 1.2em;
  padding-left: 1.4em;
}
.entry-content li { margin-bottom: 0.4em; }

/* Status box on home */
.status-box {
  background: var(--white);
  border: 3px dashed var(--sunflower-yellow);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  max-width: 480px;
  margin: 30px auto 0;
  font-weight: 600;
  color: var(--deep-brown);
}

.status-box span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--light-text);
  margin-bottom: 4px;
}
