/* About page block styles - editor & frontend parity */
.about-hero-title-new {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(32px, 4.2vw, 56px); /* slightly smaller on laptop */
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 3px 14px rgba(0,0,0,.6);
  color: #fff !important;
}

/* Ensure title color cannot be overridden by global h1 styles */
.about-hero-section-new h1.about-hero-title-new {
  color: #fff !important;
}

.about-hero-subtitle-new {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 22px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  color: #fff !important;
}

/* Prevent “Mamaia Nord” from breaking on mobile */
.about-hero-title-new .no-break {
  white-space: nowrap;
}

/* Hero cover: make image fill and add darkening gradient inspired by homepage */
.about-hero-section-new.wp-block-cover {
  min-height: 560px !important;
  position: relative;
  overflow: hidden;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: -1px !important; /* overlap header border/whitespace */
  padding-top: 0; /* remove gap under header */
}

.about-hero-section-new .wp-block-cover__image-background {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  object-position: center center !important;
}

.about-hero-section-new .wp-block-cover__background {
  /* Match homepage hero overlay: blue → orange with stronger transparency + subtle vignette */
  background:
    linear-gradient(135deg, rgba(0,179,226,0.78) 0%, rgba(255,85,0,0.72) 100%),
    radial-gradient(140% 120% at 50% 10%, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.32) 70%, rgba(0,0,0,0.42) 100%);
  position: absolute !important;
  inset: 0 !important;
}

/* Keep inner content above overlay and image */
.about-hero-section-new .wp-block-group {
  position: relative;
  z-index: 2;
}

/* Remove default top margin so hero starts flush under header */
.entry-content > .wp-block-cover.alignfull:first-child,
.entry-content > .alignfull.about-hero-section-new:first-child {
  margin-top: 0 !important;
}

/* Safety net: ensure the very first block in page content has no top margin */
.page .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* GeneratePress container often adds top padding; remove it for pages so hero can touch header */
.page .inside-article,
.page .site-main,
.page .content-area,
.page .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Ensure header doesn't push content down on pages */
body.page .site-header {
  margin-bottom: 0 !important;
}

/* Catch-all for GeneratePress separate containers layout */
body.page.separate-containers .site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Full-bleed support like homepage for alignfull blocks */
.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.benefit-card {
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Section spacing fixes for benefits area */
.about-benefits-section {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* Ensure constrained inner groups are perfectly centered */
.about-mission-section-new > .wp-block-group,
.about-benefits-section > .wp-block-group,
.about-stats-section > .wp-block-group,
.about-cta-section > .wp-block-group {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-mission-section-new .about-section-title,
.about-cta-section .about-cta-title {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.benefits-columns {
  margin-top: 20px;
}

.about-section-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 36px;
  color: var(--turquoise-light);
  position: relative;
  display: block; /* allow text-align to work regardless of parent */
  text-align: center;
}

/* Hard fix: any Gutenberg heading explicitly marked as center should render centered */
.wp-block-heading.has-text-align-center {
  text-align: center !important;
}

.about-section-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  margin: 10px auto 0 auto;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--orange-red), var(--orange-gold));
}

/* CTA gradient underline (match section titles) */
.about-cta-title::after {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  margin: 10px auto 0 auto;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--orange-red), var(--orange-gold));
}

.stat-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

.stat-number {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 48px;
  color: var(--orange-red);
}

.stat-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: #333333;
}

/* Orange gradient accents to match site (buttons only) */
.btn-reserve,
.wp-block-button .wp-block-button__link.is-style-gradient-orange {
  background: linear-gradient(135deg, var(--orange-red), var(--orange-gold));
}

/* CTA container: ensure clean white background */
.about-cta-section {
  background: #ffffff !important;
}

/* CTA button: simple and clean */
.about-cta-section .wp-block-button {
  background: linear-gradient(135deg, var(--orange-red), var(--orange-gold)) !important;
  border-radius: 10px !important;
  padding: 16px 32px !important;
  display: inline-block !important;
  box-shadow: 0 6px 22px rgba(255,85,0,0.25) !important;
  border: none !important;
  margin: 0 !important;
}

.about-cta-section .wp-block-button__link {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 700 !important;
  font-size: 18px !important;
}

/* ULTRA HIGH SPECIFICITY: Override global link styles and btn-primary */
.about-cta-section .wp-block-buttons .wp-block-button.btn-primary.btn-lg .wp-block-button__link.wp-element-button,
.about-cta-section .wp-block-buttons .wp-block-button.btn-primary .wp-block-button__link,
.about-cta-section .wp-block-button.btn-primary .wp-block-button__link,
.about-cta-section .wp-block-button .wp-block-button__link,
.about-cta-section .wp-block-button .wp-element-button,
.about-cta-section .wp-block-button a {
  color: #ffffff !important;
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
}

/* Override btn-primary hover styles for CTA - ULTRA HIGH SPECIFICITY */
.about-cta-section .wp-block-buttons .wp-block-button.btn-primary.btn-lg:hover .wp-block-button__link.wp-element-button,
.about-cta-section .wp-block-buttons .wp-block-button.btn-primary:hover .wp-block-button__link,
.about-cta-section .wp-block-button.btn-primary:hover .wp-block-button__link {
  background: transparent !important;
  border-color: transparent !important;
  color: #ffffff !important;
  transform: none !important;
}

/* Restore normal colors for other CTA elements */
.about-cta-section .wp-block-heading {
  color: var(--turquoise-light) !important;
}

.about-cta-section .wp-block-paragraph {
  color: #333333 !important;
}

.about-cta-section .wp-block-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.4) !important;
}

/**
 * WordPress Blocks Styling - Mamaia Travel
 * 
 * Custom styles for WordPress core blocks and Gutenberg editor
 */

/* ==========================================================================
   CORE BLOCKS STYLING
   ========================================================================== */

/* Headings */
.wp-block-heading {
    font-family: var(--font-brand);
    line-height: 1.2;
    margin-bottom: 20px;
}

.wp-block-heading.section-title {
    color: var(--gray-dark);
    text-align: center;
}

.wp-block-heading.hero-title {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Paragraphs */
.wp-block-paragraph {
    font-family: var(--font-body);
    line-height: 1.6;
    margin-bottom: 16px;
}

.wp-block-paragraph.hero-subtitle {
    opacity: 0.9;
    font-size: 20px;
}

.wp-block-paragraph.section-subtitle {
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.wp-block-button {
    margin-bottom: 10px;
}

.wp-block-button .wp-block-button__link {
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.wp-block-button.btn-primary .wp-block-button__link {
    background: var(--turquoise-dark);
    border-color: var(--turquoise-dark);
}

.wp-block-button.btn-primary:hover .wp-block-button__link {
    background: var(--turquoise-light);
    border-color: var(--turquoise-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(55, 206, 241, 0.3);
}

.wp-block-button.btn-secondary .wp-block-button__link {
    background: var(--orange-red);
    border-color: var(--orange-red);
}

.wp-block-button.btn-secondary:hover .wp-block-button__link {
    background: var(--orange-gold);
    border-color: var(--orange-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

.wp-block-button.btn-lg .wp-block-button__link {
    padding: 16px 32px;
    font-size: 18px;
}

/* Images */
.wp-block-image {
    margin-bottom: 20px;
}

.wp-block-image.hotel-card-image {
    margin-bottom: 0;
    height: 200px;
    overflow: hidden;
}

.wp-block-image.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hotel-card:hover .wp-block-image.hotel-card-image img {
    transform: scale(1.05);
}

/* Groups */
.wp-block-group {
    margin-bottom: 0;
}

.wp-block-group.hero {
    background: linear-gradient(135deg, var(--turquoise-dark), var(--turquoise-light));
    position: relative;
    overflow: hidden;
}

.wp-block-group.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wave" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0,50 Q25,25 50,50 T100,50 V100 H0 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23wave)"/></svg>') repeat;
    opacity: 0.1;
}

.wp-block-group.search-form {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.wp-block-group.hotel-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.wp-block-group.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--turquoise-light);
}

.wp-block-group.testimonial {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.wp-block-group.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 60px;
    color: var(--turquoise-light);
    font-family: serif;
    line-height: 1;
}

/* Columns */
.wp-block-columns {
    margin-bottom: 0;
}

.wp-block-column {
    margin-bottom: 0;
}

/* ==========================================================================
   CUSTOM BLOCK CLASSES
   ========================================================================== */

/* Search Form Specific */
.search-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 14px;
}

.search-form-input {
    width: 100%;
    padding: 15px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 16px;
    background: var(--white);
    transition: border-color 0.3s ease;
    margin-bottom: 0;
}

.search-form-input:focus {
    outline: none;
    border-color: var(--turquoise-dark);
    box-shadow: 0 0 0 3px rgba(55, 206, 241, 0.1);
}

/* Hotel Card Specific */
.hotel-card-content {
    position: relative;
}

.hotel-card-title {
    margin-bottom: 8px;
}

.hotel-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hotel-card-title a:hover {
    color: var(--turquoise-dark);
}

.hotel-card-location {
    display: flex;
    align-items: center;
    color: var(--gray-medium);
    margin-bottom: 12px;
}

.price-amount {
    margin-bottom: 15px;
}

/* Testimonials Specific */
.testimonial-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--gray-dark);
}

.stars {
    margin-bottom: 15px;
    color: #FFD700;
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR BLOCKS
   ========================================================================== */

@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 30px;
    }
    
    .wp-block-column:last-child {
        margin-bottom: 0;
    }
    
    /* Removed fixed font-size to allow responsive sizing from front-page.php */
    
    .wp-block-paragraph.hero-subtitle {
        font-size: 18px !important;
    }
    
    .wp-block-heading.section-title {
        font-size: 28px !important;
    }
    
    .wp-block-button.btn-lg .wp-block-button__link {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .search-form-input {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ==========================================================================
   EDITOR SPECIFIC STYLES
   ========================================================================== */

.block-editor-page .wp-block-group.hero {
    background: linear-gradient(135deg, #00B3E2, #37CEF1);
}

.block-editor-page .wp-block-group.hotel-card {
    border: 1px solid #e0e0e0;
}

.block-editor-page .search-form-input {
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
}

/* ==========================================================================
   BLOCK SPACING AND LAYOUT
   ========================================================================== */

.wp-block-group.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.wp-block-columns.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Section spacing */
.hotels-section,
.testimonials-section,
.search-section {
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 50px;
    text-align: center;
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

.wp-block-button .wp-block-button__link:focus {
    outline: 2px solid var(--turquoise-dark);
    outline-offset: 2px;
}

.search-form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 206, 241, 0.3);
}

.hotel-card:focus-within {
    outline: 2px solid var(--turquoise-dark);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wp-block-group.hero {
        background: #000;
        color: #fff;
    }
    
    .wp-block-button .wp-block-button__link {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wp-block-button .wp-block-button__link,
    .wp-block-group.hotel-card,
    .hotel-card-image img {
        transition: none;
    }
    
    .wp-block-button:hover .wp-block-button__link,
    .wp-block-group.hotel-card:hover {
        transform: none;
    }
} 